|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.net.udp.UDPConnection
public class UDPConnection
| Field Summary | |
|---|---|
protected int |
_bufsz
|
| Constructor Summary | |
|---|---|
UDPConnection(java.net.DatagramSocket localServer,
java.net.DatagramPacket pack,
int bufsz,
int timeout)
Constructor for UDPConnection. |
|
UDPConnection(UDPServerAddress addr,
int bufsz,
int timeout)
Constructor for UDPConnection. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this connection. |
protected ObjectStreamFactory |
getFactory()
|
ServerAddress |
getServerAddress()
Returns "address" of the server with which this connection communicates. |
java.lang.Object |
receive()
Receives an object from the server with which this connection communicates. |
protected void |
send(byte[] bytes)
|
void |
send(java.lang.Object o)
Sends the given object to the server with which this connection communicates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int _bufsz
| Constructor Detail |
|---|
public UDPConnection(UDPServerAddress addr,
int bufsz,
int timeout)
public UDPConnection(java.net.DatagramSocket localServer,
java.net.DatagramPacket pack,
int bufsz,
int timeout)
| Method Detail |
|---|
public void close()
Connection
close in interface ConnectionConnection.close()public ServerAddress getServerAddress()
Connection
getServerAddress in interface ConnectionServerAddress.Connection.getServerAddress()
public java.lang.Object receive()
throws java.io.IOException,
java.lang.ClassNotFoundException,
java.rmi.RemoteException
Connection
receive in interface ConnectionObject.
java.io.IOException
java.lang.ClassNotFoundException
java.rmi.RemoteExceptionConnection.receive()
public void send(java.lang.Object o)
throws java.io.IOException,
java.rmi.RemoteException
Connection
send in interface Connectionjava.io.IOException
java.rmi.RemoteExceptionConnection.send(Object)
protected void send(byte[] bytes)
throws java.io.IOException,
java.rmi.RemoteException
java.io.IOException
java.rmi.RemoteExceptionprotected ObjectStreamFactory getFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||