public override void SendPacket <T>(T packet, NetPeerProtocol protocol = NetPeerProtocol.Tcp)
 {
     if (Status == NetPeerStatus.Online)
     {
         if (protocol == NetPeerProtocol.Tcp)
         {
             NetworkerClient.Send(packet);
         }
         else
         {
             NetworkerClient.SendUdp(packet);
         }
     }
 }
Exemple #2
0
 public override void SendPacket <T>(T packet, NetPeerProtocol protocol = NetPeerProtocol.Tcp)
 {
     if (Status == NetPeerStatus.Online)
     {
         if (protocol == NetPeerProtocol.Tcp)
         {
             NetworkerServer.GetConnections().Broadcast(packet);
         }
         else
         {
             NetworkerServer.Broadcast(packet);
         }
     }
 }
Exemple #3
0
 public abstract void SendPacket <T>(T packet, NetPeerProtocol protocol = NetPeerProtocol.Tcp);