ZYSocket.Server.ZYSocketSuper.Disconnect C# (CSharp) Method

Disconnect() public method

断开此SOCKET
public Disconnect ( Socket socks ) : void
socks Socket
return void
        public void Disconnect(Socket socks)
        {
            try
            {
                if (sock != null)
                {
                    socks.Shutdown(SocketShutdown.Both);
                }
            }
            catch (ObjectDisposedException)
            {
            }
            catch (Exception)
            {

            }

        }