Example #1
0
 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);
 }
Example #2
0
 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);
 }