Exemplo n.º 1
0
        internal TcpTransport(TcpTransportHostBase transportHost, IPAddress ip, int port)
        {
            RemoteIP   = ip;
            RemotePort = port;
            Key        = ip + "_" + port;

            _transportHost    = transportHost;
            _state            = 0;
            _receiveProcessor = new ReceiveProcessor();
        }
Exemplo n.º 2
0
        internal TcpTransport(TransportHostBase transportHost, IPAddress ip, int port)
        {
            RemoteIP   = ip;
            RemotePort = port;
            Key        = ip + "_" + port;

            _transportHost = transportHost;

            _state            = 0;
            _receiveProcessor = new ReceiveProcessor();
            _writeBufferCache = new byte[NetworkSettings.WriteBufferSize];
        }