private void OnAccept(IAsyncResult res)
        {
            Socket socket = _sock.EndAccept(res);

            var tcpChannel = new TcpTransportChannel(socket, _serverContext);
            _tcpChannels.TryAdd(tcpChannel.Id, tcpChannel);

            BeginAccept();
        }
Exemplo n.º 2
0
        private void OnAccept(IAsyncResult res)
        {
            Socket socket = _sock.EndAccept(res);

            var tcpChannel = new TcpTransportChannel(socket, _serverContext);

            _tcpChannels.TryAdd(tcpChannel.Id, tcpChannel);

            BeginAccept();
        }
Exemplo n.º 3
0
 public ChannelRequest(TcpTransportChannel channel, int frameId, RpcRequest request)
 {
     _channel = channel;
     _frameId = frameId;
     _request = request;
 }
 public ChannelRequest(TcpTransportChannel channel, int frameId, RpcRequest request)
 {
     _channel = channel;
     _frameId = frameId;
     _request = request;
 }