public void Send(DatagramPacket datagram) => Send(datagram, datagram.point); //If there is no EndPoint in the arguments, the default will be EndPoint in the DatagramPacket public void Send(DatagramPacket datagram, IPEndPoint endPoint) { try { _socket.SendTo(datagram.messageBytes, endPoint); } catch (Exception e) { SendLog(ERR_SEND, e); } finally { SendLog(ST_SEND); } }
public void Send(DatagramPacket datagram) => Send(datagram, datagram.point); //If there is no EndPoint in the arguments, the default will be EndPoint in the DatagramPacket