示例#1
0
        public void Close()
        {
            Connected = false;

            if (sysSocket != null)
            {
                sysSocket.Close();
                sysSocket = null;
            }

            receiveBuffer.Dispose();
            sendBuffer.Dispose();

            receiveBuffer = null;
            sendBuffer    = null;
        }
示例#2
0
        public void Close()
        {
            Connected = false;

            if (sysSocket != null)
            {
                sysSocket.Close();
                sysSocket = null;
            }

            receiveBuffer.Dispose();
            sendBuffer.Dispose();

            receiveBuffer = null;
            sendBuffer = null;
        }