|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectnetP5.NetMessage
public class NetMessage
Method Summary | |
---|---|
java.lang.String |
address()
|
byte[] |
getData()
get the data of the message as bytes. |
java.net.DatagramPacket |
getDatagramPacket()
|
java.lang.String |
getString()
get the data the message as string. |
TcpPacket |
getTcpPacket()
|
java.net.InetAddress |
inetAddress()
|
int |
port()
get the port the net message was received at. |
int |
protocol()
get the protocol type the message was sent over. |
TcpClient |
tcpConnection()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public TcpPacket getTcpPacket()
public java.net.DatagramPacket getDatagramPacket()
public byte[] getData()
public java.lang.String getString()
public int protocol()
public int port()
public TcpClient tcpConnection()
public java.lang.String address()
public java.net.InetAddress inetAddress()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |