Class DiscardUDPClient

    • Method Detail

      • send

        public void send​(byte[] data,
                         int length,
                         java.net.InetAddress host,
                         int port)
                  throws java.io.IOException
        Sends the specified data to the specified server at the specified port.
        Parameters:
        data - The discard data to send.
        length - The length of the data to send. Should be less than or equal to the length of the data byte array.
        host - The address of the server.
        port - The service port.
        Throws:
        java.io.IOException - If an error occurs during the datagram send operation.
      • send

        public void send​(byte[] data,
                         int length,
                         java.net.InetAddress host)
                  throws java.io.IOException
        Same as send(data, length, host. DiscardUDPClient.DEFAULT_PORT).
        Parameters:
        data - the buffer to send
        length - the length of the data in the buffer
        host - the target host
        Throws:
        java.io.IOException - if an error occurs
        See Also:
        send(byte[], int, InetAddress, int)
      • send

        public void send​(byte[] data,
                         java.net.InetAddress host)
                  throws java.io.IOException
        Same as send(data, data.length, host. DiscardUDPClient.DEFAULT_PORT).
        Parameters:
        data - the buffer to send
        host - the target host
        Throws:
        java.io.IOException - if an error occurs
        See Also:
        send(byte[], int, InetAddress, int)