Example usage for Java io.netty.channel.socket DatagramPacket fields, constructors, methods, implement or subclass
The text is from its open source code.
DatagramPacket(ByteBuf data, InetSocketAddress recipient) Create a new instance with the specified packet data and recipient address. | |
DatagramPacket(ByteBuf data, InetSocketAddress recipient, InetSocketAddress sender) Create a new instance with the specified packet data , recipient address, and sender address. |
ByteBuf | content() Return the data which is held by this ByteBufHolder . |
DatagramPacket | copy() |
boolean | release() Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0 . |
DatagramPacket | replace(ByteBuf content) |
DatagramPacket | retain() |