|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.message.Message
org.eclipse.soda.dk.udp.transport.UdpMessage
public class UdpMessage
The UdpMessage contains data specific to the udp protocol, such as the port and host. A UdpMessage that should only be used in conjuntion with a UdpTransport.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.soda.dk.message.service.MessageService |
|---|
HIGH_PRIORITY, LOW_PRIORITY, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, STRING, THREAD_PRIORITY |
| Constructor Summary | |
|---|---|
UdpMessage()
Constructor for UdpMessage. |
|
UdpMessage(byte[] bytes)
Constructor for UdpMessage. |
|
UdpMessage(byte[] bytes,
java.lang.String host,
int port)
Constructs an instance of this class from the specified bytes, host and port parameters. |
|
| Method Summary | |
|---|---|
java.lang.String |
getHost()
Return the host name. |
int |
getPort()
Return the port number. |
void |
setHost(java.lang.String host)
Set the host name. |
void |
setPort(int port)
Set the port number. |
| Methods inherited from class org.eclipse.soda.dk.message.Message |
|---|
clone, decodeMessage, decodeMessage, encodeMessage, encodeMessage, equals, get, getBoolean, getByte, getBytes, getData, getDataBytes, getDataLength, getDataOffset, getInt, getIntByte, getIntByte, getKey, getLittleEndianInt, getLittleEndianLong, getLong, getLongByte, getLongByte, getParameter, getPriority, getShort, hashCode, isBigEndian, length, lookup, matches, put, setBoolean, setByte, setBytes, setData, setInt, setLong, setShort, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UdpMessage()
UdpMessage(byte[]),
UdpMessage(byte[],String,int)public UdpMessage(byte[] bytes)
byte[]) parameter.
bytes - The bytes (byte[]) parameter.UdpMessage(),
UdpMessage(byte[],String,int)
public UdpMessage(byte[] bytes,
java.lang.String host,
int port)
byte[]) parameter.
The host (String) parameter.
The port (int) parameter.
bytes - The bytes (byte[]) parameter.host - The host (String) parameter.port - The port (int) parameter.UdpMessage(),
UdpMessage(byte[])| Method Detail |
|---|
public java.lang.String getHost()
String) value.setHost(String)public int getPort()
int) value.setPort(int)public void setHost(java.lang.String host)
String) parameter.
host - The host (String) parameter.getHost()public void setPort(int port)
int) parameter.
port - The port (int) parameter.getPort()
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||