TODO: message framing has resposability to create stream?
Beispiel #1
0
 public Session(Sessions sessions, HumbleServer server, TcpClient client, Framing framing, string delimiter)
 {
     _stream   = MessageFraming.Create(framing, client, delimiter);
     _server   = server;
     _client   = client;
     _sessions = sessions;
 }
 private void CreateStream()
 {
     _stream = MessageFraming.Create(_framing, _tcpClient, _delimiter);
     _stream.NetworkStream.WriteTimeout = SendTimeOut;
     _stream.NetworkStream.ReadTimeout  = ReceiveTimeOut;
 }