Пример #1
0
 public IntellectAgent1(string id, string ip)
 {
     this.connector         = new IidkConnector(ip, id);
     this.intellectCallback = this.onMessage;
     this.connectorLock     = new object();
     this.isConnectedLock   = new object();
 }
Пример #2
0
 public bool Connect(IntellectCallback func)
 {
     this.Disconnect();
     return(Connect(this.ip, IIDK_PORT, this.id, func) != 0);
 }
Пример #3
0
 private static extern int Connect(string ip, string port, string id, IntellectCallback func);