public void SendData(Packet data) { if (endPoint == null) { return; } Sender.AddUdpData(endPoint, data.ToArray()); }
public void SendData(Packet data) { if (socket == null) { return; } data.InsertInt(id); Sender.AddUdpData(endPoint, data.ToArray()); }