private void SendComplate(object sender, SocketAsyncEventArgs sendEventArgs) { if (sendEventArgs.SocketError == SocketError.Success) { if (ConnectSocket != null) { PacketProtocol.SendProcess();//继续发送 } } else { lock (closeLock) { DisConnect(); } } }
private void SendComplate(object sender, SocketAsyncEventArgs sendEventArgs) { if (sendEventArgs.SocketError == SocketError.Success) { if (ConnectSocket != null) { PacketProtocol.SendProcess();//继续发送 } } else { lock (closeLock) { DisConnect(); } } }