예제 #1
0
 internal SocketReader(
     TcpClient tcpClient,
     SocketSettings settings,
     ClientHandlerThread responder,
     AcceptorSocketDescriptor acceptorDescriptor)
 {
     tcpClient_                   = tcpClient;
     responder_                   = responder;
     acceptorDescriptor_          = acceptorDescriptor;
     stream_                      = Transport.StreamFactory.CreateServerStream(tcpClient, settings, responder.GetLog());
     _readCancellationTokenSource = new CancellationTokenSource();
 }
예제 #2
0
 public SocketReader(TcpClient tcpClient, SocketSettings settings, ClientHandlerThread responder)
 {
     tcpClient_ = tcpClient;
     responder_ = responder;
     stream_ = Transport.StreamFactory.CreateServerStream(tcpClient, settings, responder.GetLog());
 }
예제 #3
0
 public SocketReader(TcpClient tcpClient, SocketSettings settings, ClientHandlerThread responder)
 {
     parser_    = new Parser(settings.Encoding);
     encoding_  = settings.Encoding;
     tcpClient_ = tcpClient;
     responder_ = responder;
     stream_    = Transport.StreamFactory.CreateServerStream(tcpClient, settings, responder.GetLog());
 }
예제 #4
0
 public SocketReader(TcpClient tcpClient, SocketSettings settings, ClientHandlerThread responder)
 {
     tcpClient_ = tcpClient;
     responder_ = responder;
     stream_    = Transport.StreamFactory.CreateServerStream(tcpClient, settings, responder.GetLog());
 }
예제 #5
0
 public SocketReader(TcpClient tcpClient, SocketSettings settings, ClientHandlerThread responder, Encoding encoding)
 {
     tcpClient_       = tcpClient;
     responder_       = responder;
     stream_          = Transport.StreamFactory.CreateServerStream(tcpClient, settings, responder.GetLog());
     _messageEncoding = encoding;
     parser_          = new Parser(encoding);
 }
예제 #6
0
 internal SocketReader(
     TcpClient tcpClient,
     SocketSettings settings,
     ClientHandlerThread responder,
     AcceptorSocketDescriptor acceptroDescriptor)
 {
     parser_             = new Parser(settings.Encoding);
     encoding_           = settings.Encoding;
     tcpClient_          = tcpClient;
     responder_          = responder;
     acceptorDescriptor_ = acceptroDescriptor;
     stream_             = Transport.StreamFactory.CreateServerStream(tcpClient, settings, responder.GetLog());
 }