Exemplo n.º 1
0
        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); }
        }
Exemplo n.º 2
0
 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