Пример #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());
 }
Пример #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());
 }