DatagramPacket

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

package

Default

Methods

__construct

__construct() 

Returns the data of the @see \io\vertx\jphp\core\datagram\DatagramPacket

data() : \io\vertx\jphp\core\buffer\Buffer

Returns the @see \io\vertx\jphp\core\net\SocketAddress of the sender that sent this @see \io\vertx\jphp\core\datagram\DatagramPacket.

sender() : \io\vertx\jphp\core\net\SocketAddress

Response

\io\vertx\jphp\core\net\SocketAddress

the address of the sender