public bool connect(string ip, string port, string target, NetworkLib.Client.NewMsgHandler msgHandler) { client = new NetworkLib.Client(ip, port); client.OnNewMessageRecived += msgHandler; sendMyName(); return(true); }
public bool connect(string ip, string port) { client = new NetworkLib.Client(ip, port); newMessageHandler = new NetworkLib.Client.NewMsgHandler(displayMessageReceived); client.OnNewMessageRecived += newMessageHandler; sendMyName(); return(true); }