예제 #1
0
 public void Disconnect()
 {
     if (!connected)
     {
         throw new System.Exception("Invalid connection state");
     }
     IidkWrapper.Disconnect(selfId);
 }
예제 #2
0
 public void SendMessage(string msg)
 {
     if (!connected)
     {
         //throw new System.Exception("Invalid connection state");
         IidkWrapper.Connect(IpAdress, ConnectionPort, "", callback);
     }
     //  IidkWrapper.Connect("127.0.0.1", "1030", "1", callback);
     IidkWrapper.SendMsg(selfId, msg);
 }
예제 #3
0
 //
 public void Connect(string address, string port, string id)
 {
     selfId = id;
     IidkWrapper.Connect(address, port, id, callback);
 }