Пример #1
0
 public void Send(INetworkPacket networkPacket)
 {
     _SendBytes = networkPacket.ToByteArray();
     _Stream.Write(_SendBytes, 0, _SendBytes.Length);
 }
 private void SendPacket(INetworkPacket packet)
 {
     _SendBytes = packet.ToByteArray();
     _Stream.Write(_SendBytes, 0, _SendBytes.Length);
 }