|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.anotheria.net.udp.client.UDPObjectSender
public class UDPObjectSender
This is a utility class for sending objects over an udp connection. It sneds them over an underlying UDPPacketSender.
| Constructor Summary | |
|---|---|
UDPObjectSender(int aSourcePort)
Creates a new UDPObjectSender bound to a given port. |
|
UDPObjectSender(int aMinPort,
int aMaxPort)
Creates a new UDPObjectSender bound to a first free port in the given port range. |
|
UDPObjectSender(int aMinPort,
int aMaxPort,
String aDefaultHost,
int aDefaultPort)
|
|
UDPObjectSender(int aSourcePort,
String aDefaultHost,
int aDefaultPort)
|
|
| Method Summary | |
|---|---|
void |
dummy()
|
void |
send(Object o)
Sends an object to the other side. |
void |
sendTo(Object o,
String host,
int port)
Sends an object to specified host and port. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UDPObjectSender(int aSourcePort)
aSourcePort - the port to listen to.
public UDPObjectSender(int aMinPort,
int aMaxPort)
aMinPort - the minimum port range.aMaxPort - the maximum port range.
public UDPObjectSender(int aSourcePort,
String aDefaultHost,
int aDefaultPort)
public UDPObjectSender(int aMinPort,
int aMaxPort,
String aDefaultHost,
int aDefaultPort)
| Method Detail |
|---|
public void send(Object o)
throws IOException
o - the object to send.
IOException
public void sendTo(Object o,
String host,
int port)
throws IOException
o - the object to send.host - the host to send the object to.port - the port to send the object to.
IOExceptionpublic void dummy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||