Java io.netty.channel.socket DatagramPacket fields, constructors, methods, implement or subclass

Example usage for Java io.netty.channel.socket DatagramPacket fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for io.netty.channel.socket DatagramPacket.

The text is from its open source code.

Constructor

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.

Method

ByteBufcontent()
Return the data which is held by this ByteBufHolder .
DatagramPacketcopy()
booleanrelease()
Decreases the reference count by 1 and deallocates this object if the reference count reaches at 0 .
DatagramPacketreplace(ByteBuf content)
DatagramPacketretain()