|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjist.swans.app.net.UdpSocket
public class UdpSocket
The SWANS target of all java.net.DatagramSocket calls.
Nested Class Summary | |
---|---|
static class |
UdpSocket.UdpSocketCallback
Callback for incoming UDP packets. |
Field Summary | |
---|---|
private TransInterface.SocketHandler |
callback
UDP socket handler. |
private Channel |
channel
blocking channel represents application-kernel boundary; used to wait on packets. |
private boolean |
isBound
whether socket is bound. |
private java.net.InetAddress |
laddr
local address. |
private int |
lport
local port. |
private TransInterface |
udpEntity
UDP entity. |
Constructor Summary | |
---|---|
|
UdpSocket()
|
protected |
UdpSocket(java.net.DatagramSocketImpl impl)
|
|
UdpSocket(int port)
|
|
UdpSocket(int port,
java.net.InetAddress addr)
|
|
UdpSocket(java.net.SocketAddress addr)
|
Method Summary | |
---|---|
void |
_jistPostInit()
Post-constructor call. |
void |
bind(java.net.SocketAddress addr)
|
void |
close()
|
void |
receive(java.net.DatagramPacket p)
|
void |
send(java.net.DatagramPacket p)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int lport
private java.net.InetAddress laddr
private Channel channel
private TransInterface.SocketHandler callback
private TransInterface udpEntity
private boolean isBound
Constructor Detail |
---|
public UdpSocket()
DatagramSocket
protected UdpSocket(java.net.DatagramSocketImpl impl)
DatagramSocket
public UdpSocket(int port)
DatagramSocket
public UdpSocket(int port, java.net.InetAddress addr)
DatagramSocket
public UdpSocket(java.net.SocketAddress addr)
DatagramSocket
Method Detail |
---|
public void _jistPostInit()
public void bind(java.net.SocketAddress addr)
DatagramSocket
public void close()
DatagramSocket
public void receive(java.net.DatagramPacket p)
DatagramSocket
public void send(java.net.DatagramPacket p)
DatagramSocket
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |