public static bool Init(int port) { Client = new AsyncClient(null); if (Client.Connect("127.0.0.1", port)) { Client.OnRecevice += new OnReceviceHanlder(Recevice); Client.BeginRecevice(); return(true); } return(false); }
public static bool Init(int port) { Client = new AsyncClient(null); if (Client.Connect("127.0.0.1", port)) { Client.OnRecevice += new OnReceviceHanlder(Recevice); Client.BeginRecevice(); return(true); } return(false); }