Пример #1
0
 protected byte[] GetBytes(P2PMessageBase mess)
 {
     var str = _serializer.Serialize(mess);
     return Encoding.UTF8.GetBytes(str);
 }
Пример #2
0
 public override bool SendMessage(P2PMessageBase message)
 {
     var bytes = GetBytes(message);
     Peer.Send(bytes);
     return true;
 }
Пример #3
0
 public abstract bool SendMessage(P2PMessageBase message);