Esempio 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();
        }
Esempio 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];
        }