public void Disconnect() { if (!connected) { throw new System.Exception("Invalid connection state"); } IidkWrapper.Disconnect(selfId); }
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); }
// public void Connect(string address, string port, string id) { selfId = id; IidkWrapper.Connect(address, port, id, callback); }