protected override void OnListen() { while (true) { Socket cli = TCP.AcceptSocket(); NetIORemoteClient remote = new NetIORemoteClient(cli); NetIOLinkClient link = new NetIOLinkClient(CIPE); UserProxy User = new UserProxy(0, remote, link); User.OnDisconnect += OnClientDisconnect; User.OnSetID += OnUserSetID; User.OnSetRoleID += OnUserSetRoleID; User.Connect(); } }