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