예제 #1
0
 public void Setup()
 {
     _cbs             = new MockSmartCallbacks();
     _bareSock        = new MockSock();
     _bufferPool      = new MockBufferPool();
     _threadSmartSock = new ThreadSmartSock(_bufferPool, _bareSock, _cbs);
 }
예제 #2
0
 public void Setup()
 {
     _cbs        = new MockSmartCallbacks();
     _bareSock   = new MockSock();
     _bufferPool = new ByteBufferPool();
     _sock       = new SmartSock(_bufferPool, _bareSock, _cbs);
 }
예제 #3
0
 public void Setup()
 {
     _cbs            = new MockSmartCallbacks();
     _bareSock       = new MockSock();
     _bufferPool     = new ByteBufferPool();
     _sock           = new SmartSock(_bufferPool, _bareSock, _cbs);
     _remoteEndPoint = new IPEndPoint(IPAddress.Loopback, 23452);
 }
예제 #4
0
        public void Setup()
        {
            _cbs        = new MockSmartCallbacks();
            _bareSock   = new MockSock();
            _bufferPool = new ByteBufferPool();
            _sock       = new SmartSock(_bufferPool, _bareSock, _cbs);
            _endPoint   = new IPEndPoint(IPAddress.Loopback, 23452);

            Utils.SendConnectRequest(_bareSock, _endPoint, _bufferPool);
        }