ants
Class UDPChannel
java.lang.Object
|
+--ants.Entity
|
+--ants.ManagedObject
|
+--ants.Channel
|
+--ants.UDPChannel
- public class UDPChannel
- extends Channel
UDP channel for nodes
Field Summary |
static int |
BUFSIZE
|
protected java.net.DatagramSocket |
socket
|
Methods inherited from class ants.Entity |
assert,
error,
finalize,
getLogLevel,
getName,
info,
setArgs,
setArgs,
setArgs,
setLogLevel,
warn |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BUFSIZE
public static final int BUFSIZE
socket
protected java.net.DatagramSocket socket
UDPChannel
public UDPChannel(Manager b,
java.lang.String n,
UDPChannelAddress src)
throws java.io.IOException
UDPChannel
public UDPChannel(Manager b,
java.lang.String n,
java.lang.String hp)
throws java.lang.Exception
getMTU
public int getMTU()
- Overrides:
- getMTU in class Channel
send
public boolean send(byte[] buf,
int length,
ChannelAddress dst)
receive
public Capsule receive()
throws java.lang.Exception