public class NativeDatagramPacket extends Object
Constructor and Description |
---|
NativeDatagramPacket(byte[] data,
InetAddress host,
int port) |
NativeDatagramPacket(ByteBuffer data,
InetAddress address,
int port) |
NativeDatagramPacket(int size) |
Modifier and Type | Method and Description |
---|---|
InetAddress |
getAddress() |
ByteBuffer |
getContent() |
int |
getLength() |
int |
getPort() |
void |
setAddress(InetAddress addr) |
void |
setLength(int length) |
void |
setPort(int port) |
String |
toString() |
public NativeDatagramPacket(ByteBuffer data, InetAddress address, int port)
public NativeDatagramPacket(int size)
public NativeDatagramPacket(byte[] data, InetAddress host, int port)
public InetAddress getAddress()
public void setAddress(InetAddress addr)
public int getPort()
public void setPort(int port)
public int getLength()
public void setLength(int length)
public ByteBuffer getContent()
Copyright © 2017. All rights reserved.