Griffin.Net.Channels.TcpChannel.Close C# (CSharp) Method

Close() public method

Signal channel to close.

Will wait for all data to be sent before closing.

public Close ( ) : void
return void
        public void Close()
        {
            _socket.Shutdown(SocketShutdown.Send);
            _closeEvent.Wait(5000);
            IsConnected = false;
        }