public void Broadcast <T>(T packet) { var socket = _udpSocketListener.GetSocket(); var serialisedPacket = _packetSerialiser.Serialise(packet); socket.Send(serialisedPacket); }
public void SendTo(byte[] packetBytes, IPEndPoint endpoint) { var socket = _udpSocketListener.GetSocket(); socket.SendTo(packetBytes, endpoint); }