Exemplo n.º 1
0
 public AsyncReader(IByteParser parser, byte[] buffer, IAcceptor acceptor, ISocketErrorHandler errorHandler, Socket socket)
 {
     _parser       = parser;
     _buffer       = buffer;
     _acceptor     = acceptor;
     _errorHandler = errorHandler;
     _socket       = socket;
     _endpoint     = socket.RemoteEndPoint;
     _log          = LogManager.GetLogger(_endpoint.ToString());
 }
Exemplo n.º 2
0
 public AsyncReader(IByteParser parser, byte[] buffer, IAcceptor acceptor, ISocketErrorHandler errorHandler, Socket socket)
 {
     _parser = parser;
     _buffer = buffer;
     _acceptor = acceptor;
     _errorHandler = errorHandler;
     _socket = socket;
     _endpoint = socket.RemoteEndPoint;
     _log = LogManager.GetLogger(_endpoint.ToString());
 }