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); } } }
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); } } }
public abstract void SendPacket <T>(T packet, NetPeerProtocol protocol = NetPeerProtocol.Tcp);