org.eclipse.soda.dk.udp.transport
Class UdpMessage
java.lang.Object
org.eclipse.soda.dk.message.Message
org.eclipse.soda.dk.udp.transport.UdpMessage
- All Implemented Interfaces:
- java.lang.Cloneable, MessageService
public class UdpMessage
- extends Message
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.
- Version:
- 1.1.0
|
Method Summary |
java.lang.String |
getHost()
Return the host name. |
int |
getPort()
Return the port number. |
void |
setHost(java.lang.String host)
|
void |
setPort(int port)
|
| 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 |
UdpMessage
public UdpMessage()
- Constructor for UdpMessage.
- See Also:
UdpMessage(byte[]),
UdpMessage(byte[],String,int)
UdpMessage
public UdpMessage(byte[] bytes)
- Parameters:
bytes - The bytes (byte[]) parameter.- See Also:
UdpMessage(),
UdpMessage(byte[],String,int)
UdpMessage
public UdpMessage(byte[] bytes,
java.lang.String host,
int port)
- Parameters:
bytes - The bytes (byte[]) parameter.host - The host (String) parameter.port - The port (int) parameter.- See Also:
UdpMessage(),
UdpMessage(byte[])
getHost
public java.lang.String getHost()
- Return the host name.
- Returns:
- Results of the get host (
String) value. - See Also:
setHost(String)
getPort
public int getPort()
- Return the port number.
- Returns:
- Results of the get port (
int) value. - See Also:
setPort(int)
setHost
public void setHost(java.lang.String host)
- Parameters:
host - The host (String) parameter.- See Also:
getHost()
setPort
public void setPort(int port)
- Parameters:
port - The port (int) parameter.- See Also:
getPort()
Copyright (c) 1999, 2008 IBM and others. See license in Legal section. OSGi Framework Version 3.3.1.R33x_v20070828