/// <summary> /// 套接字处理 /// </summary> internal void OnSocket() { while (this.socket != null) { socketHandle.Wait(); SocketLink socket = Interlocked.Exchange(ref socketHead, null); do { try { while (socket != null) { socket = socket.Start(this); } break; } catch (Exception error) { RegisterServer.TcpServer.Log.Add(AutoCSer.Log.LogType.Debug, error); } socket = socket.Cancel(); }while (true); } socketHead = null; }