Package: io.vertx.groovy.core.datagram

## [Groovy] Class DatagramPacket

- io.vertx.groovy.core.datagram.DatagramPacket

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

- - ### Constructor Summary

    Constructors
    Constructor and description
    `DatagramPacket (java.lang.Object delegate)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `Buffer` | `data()` Returns the data of the DatagramPacket
    `java.lang.Object` | `getDelegate()`
    `SocketAddress` | `sender()` Returns the SocketAddress of the sender that sent this DatagramPacket.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Constructor Detail

    - #### DatagramPacket(java.lang.Object delegate)

  - ### Method Detail

    - #### Buffer data()

      Returns the data of the DatagramPacket

      Returns:
        the data

    - #### java.lang.Object getDelegate()

    - #### SocketAddress sender()

      Returns the SocketAddress of the sender that sent this DatagramPacket.

      Returns:
        the address of the sender