|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object urv.emulator.VirtualDatagramSocket
public class VirtualDatagramSocket
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
log
|
Constructor Summary | |
---|---|
VirtualDatagramSocket(int port,
java.net.InetAddress addr)
|
Method Summary | |
---|---|
void |
close()
Closes this virtual datagram socket. |
java.net.InetAddress |
getLocalAddress()
Gets the local address to which the socket is bound. |
int |
getLocalPort()
Returns the port number on the local host to which this socket is bound. |
int |
getReceiveBufferSize()
|
int |
getSendBufferSize()
|
boolean |
isEnabled()
|
void |
receive(java.net.DatagramPacket p)
Receives a datagram packet from this socket. |
void |
send(java.net.DatagramPacket p)
Sends a datagram packet from this socket. |
void |
setReceiveBufferSize(int size)
Not implemented |
void |
setSendBufferSize(int size)
Not implemented |
void |
setTrafficClass(int tc)
Not implemented |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.commons.logging.Log log
Constructor Detail |
---|
public VirtualDatagramSocket(int port, java.net.InetAddress addr) throws java.net.SocketException
java.net.SocketException
Method Detail |
---|
public void close()
public void receive(java.net.DatagramPacket p) throws java.io.IOException
p
- the DatagramPacket into which to place the incoming data.
java.io.IOException
public void send(java.net.DatagramPacket p) throws java.io.IOException
p
-
java.io.IOException
public void setReceiveBufferSize(int size) throws java.net.SocketException
-
java.net.SocketException
public void setSendBufferSize(int size) throws java.net.SocketException
-
java.net.SocketException
public void setTrafficClass(int tc) throws java.net.SocketException
tc
-
java.net.SocketException
public java.net.InetAddress getLocalAddress()
public int getLocalPort()
public int getReceiveBufferSize() throws java.net.SocketException
java.net.SocketException
public int getSendBufferSize() throws java.net.SocketException
java.net.SocketException
public boolean isEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |