Class: DatagramPacket

vertx-js/datagram_packet~ DatagramPacket

new DatagramPacket()

A received datagram packet (UDP) which contains the data and information about the sender of the data itself.
Source:

Methods

data() → {Buffer}

Returns the data of the DatagramPacket
Source:
Returns:
the data
Type
Buffer

sender() → {SocketAddress}

Returns the SocketAddress of the sender that sent this DatagramPacket.
Source:
Returns:
the address of the sender
Type
SocketAddress