|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UDPProtocol
Defines constants used as hints key that can be given to a UDP protocol.
Field Summary | |
---|---|
static String |
ADDRESS
Key name for value used by the Protocol.createExportIdentifier(java.util.Map method
to specify the address of the export identifier to create. |
static String |
PORT
This integer hint, used at export time, can specify the port of the UDP socket. |
static String |
PORT_RANGE
This integer hint, used at export time, can specify the range of ports on which the UDP protocol will try to open socket. |
Fields inherited from interface org.objectweb.dream.protocol.messagePassing.MessagePassingProtocol |
---|
FROM_CHUNK_NAME |
Fields inherited from interface org.objectweb.dream.protocol.Protocol |
---|
ITF_NAME, LOWER_PROTOCOL_ITF_NAME |
Method Summary | |
---|---|
IPExportIdentifier |
createExportIdentifier(String hostName,
int port)
Utility method. |
MessagePassingOutgoingPush |
export(IncomingPush incomingPushItf,
int port,
int range,
String fromChunkName)
Utility method. |
Methods inherited from interface org.objectweb.dream.protocol.messagePassing.MessagePassingProtocol |
---|
export |
Methods inherited from interface org.objectweb.dream.protocol.Protocol |
---|
createExportIdentifier |
Field Detail |
---|
static final String PORT
Protocol.createExportIdentifier(java.util.Map, org.objectweb.dream.protocol.ExportIdentifier[])
method
to specify the port of the export identifier to create.
static final String PORT_RANGE
PORT
key), only the specified port will be tried before aborting.
PORT
hint are specified, the UDP
protocol will create a socket with an undetermined port.
static final String ADDRESS
Protocol.createExportIdentifier(java.util.Map, org.objectweb.dream.protocol.ExportIdentifier[])
method
to specify the address of the export identifier to create. The value
associated with this key can be an InetAddress
or a
String
.
Method Detail |
---|
MessagePassingOutgoingPush export(IncomingPush incomingPushItf, int port, int range, String fromChunkName) throws ExportException
incomingPushItf
- the interface on which message received on the
created access point will be passed.port
- the port of the created UDP socket. range
- the range of ports on which the UDP protocol will try to open
socket. fromChunkName
- If not null
a
ExportIdentifierChunk
will
be added to every received messages (see MessagePassingProtocol.FROM_CHUNK_NAME
).
ExportException
- if the export process fails.MessagePassingProtocol.export(IncomingPush, java.util.Map)
IPExportIdentifier createExportIdentifier(String hostName, int port)
Protocol.createExportIdentifier(java.util.Map,
org.objectweb.dream.protocol.ExportIdentifier[])
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |