Наследование: ITcpTransportConnection
Пример #1
0
 private bool ReadReply(byte[] bytes, int length, TcpTransportConnection connection)
 {
     var reply = Encoding.UTF8.GetString(bytes, 0, length);
     if(reply.Equals(_echoStore))
     {
         Logger.Info("Received " + reply);
         _waiter.Set();
     } else
     {
         Logger.Warn("Received unexpected " + reply);
     }
     return true;
 }
Пример #2
0
 private bool Reader(byte[] data, int length, TcpTransportConnection connection)
 {
     Logger.Debug("Got some data to echo " + Encoding.UTF8.GetString(data,0,length));
     return connection.SendDataToTransportSocket(data, length);
 }