|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectp2ps.imp.endpoint.UDP.UDPReplyEndpoint
An wrapper endpoint that is used to reply to a specific UDP network address.
| Constructor Summary | |
UDPReplyEndpoint(UDPEndpoint endpoint)
|
|
| Method Summary | |
void |
addEndpointMessageListener(EndpointMessageListener listener)
Adds a listener to receive data from this endpoint |
void |
close()
Closes the endpoint |
void |
connect(java.net.SocketAddress address)
Connects the socket to the specified address |
void |
connect(java.lang.String address,
int port)
Connects the socket to the specified address |
java.net.URI |
getEndpointURI()
|
java.net.URI |
getSendURI()
|
void |
init()
initializes the endpoint |
boolean |
isClosed()
|
boolean |
isInputEndpoint()
|
boolean |
isOutputEndpoint()
|
void |
removeEndpointMessageListener(EndpointMessageListener listener)
Removes a listener from this endpoint |
void |
send(byte[] message)
Sends a message from the endpoint to the address the endpoint is bound to, with no sendid. |
void |
send(java.lang.String sendid,
byte[] message)
Sends a message from the endpoint to the address the endpoint is bound to, along with the send id for this message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UDPReplyEndpoint(UDPEndpoint endpoint)
endpoint - the endpoint this reply endpoint wraps| Method Detail |
public void init()
throws java.io.IOException
init in interface Endpointjava.io.IOExceptionpublic void addEndpointMessageListener(EndpointMessageListener listener)
addEndpointMessageListener in interface Endpointpublic void removeEndpointMessageListener(EndpointMessageListener listener)
removeEndpointMessageListener in interface Endpointpublic java.net.URI getEndpointURI()
getEndpointURI in interface Endpointpublic java.net.URI getSendURI()
getSendURI in interface Endpointpublic boolean isInputEndpoint()
isInputEndpoint in interface Endpointpublic boolean isOutputEndpoint()
isOutputEndpoint in interface Endpoint
public void connect(java.lang.String address,
int port)
public void connect(java.net.SocketAddress address)
public void send(byte[] message)
throws java.io.IOException
send in interface Endpointjava.io.IOException
public void send(java.lang.String sendid,
byte[] message)
throws java.io.IOException
send in interface Endpointjava.io.IOException
public void close()
throws java.io.IOException
close in interface Endpointjava.io.IOExceptionpublic boolean isClosed()
isClosed in interface Endpoint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||