678910111213141516
public class NiaNetworkClientExample implements NiaListener { public NiaNetworkClientExample() { NiaNetworkClient client = new NiaNetworkClient("localhost", 4321); client.addListener(this); client.connect(); } @Override