public final class DatagramPacket extends Object
Constructor and Description |
---|
DatagramPacket(byte[] abyte0,
int i) |
DatagramPacket(byte[] abyte0,
int i,
InetAddress inetaddress,
int j) |
Modifier and Type | Method and Description |
---|---|
InetAddress |
getAddress() |
byte[] |
getData() |
int |
getLength() |
int |
getPort() |
void |
setAddress(InetAddress inetaddress) |
void |
setData(byte[] abyte0) |
void |
setLength(int i) |
void |
setPort(int i) |
public DatagramPacket(byte[] abyte0, int i)
abyte0
- ?i
- ?public DatagramPacket(byte[] abyte0, int i, InetAddress inetaddress, int j)
abyte0
- ?i
- ?inetaddress
- ?j
- ?public InetAddress getAddress()
public byte[] getData()
public int getLength()
public int getPort()
public void setAddress(InetAddress inetaddress)
inetaddress
- ?public void setData(byte[] abyte0)
abyte0
- ?public void setLength(int i)
i
- ?public void setPort(int i)
i
- ?