コード例 #1
0
        /// <summary>
        /// Send the bytes over the connection.
        /// </summary>
        /// <param name="connection"></param>
        /// <param name="authentication"></param>
        private void SendAuthentication(SocketConnection connection, IConnectorAuthentication authentication)
        {
            var bytes  = authentication.SendAuthentication();
            var socket = connection.Socket;

            if (socket != null)
            {
                socket.Send(bytes);
            }
        }
コード例 #2
0
ファイル: NetworkConnector.cs プロジェクト: vishalishere/vrs
        /// <summary>
        /// Send the bytes over the connection.
        /// </summary>
        /// <param name="connection"></param>
        /// <param name="authentication"></param>
        private void SendAuthentication(SocketConnection connection, IConnectorAuthentication authentication)
        {
            var bytes = authentication.SendAuthentication();

            connection.Socket.Send(bytes);
        }