Ejemplo n.º 1
0
        public void Close()
        {
            if (socket != null)
            {
                socket.Disconnect(false);
                socket.Close();
            }

            buffer.Dispose();
            socket       = null;
            lenBuffer    = null;
            Disconnected = null;
            DataReceived = null;
        }
Ejemplo n.º 2
0
        public void Dispose()
        {
            ReceiveBuffer?.Dispose();

            TransmitBuffer?.Dispose();
        }