public interface BehaviorWriterIF
In general, you write to a destination. That destination is represented by an IP address and a port. You can also set a "default destination", where things will go unless you specify otherwise.
Modifier and Type | Field and Description |
---|---|
static int |
MTU_SIZE
The (rough) size of an ethernet frame
|
Modifier and Type | Method and Description |
---|---|
void |
setDefaultDestination(java.net.InetAddress addr,
int port)
Set the default destination that the plain write(pdu) method
will send data to.
|
void |
write(java.nio.ByteBuffer buffer)
Write PDU information to the default destination.
|
static final int MTU_SIZE
void setDefaultDestination(java.net.InetAddress addr, int port)
addr
- first object that describes destination (eg, IP)port
- second object that describes destination (eg, port number)void write(java.nio.ByteBuffer buffer)
buffer
- the DIS PDU infomation to be written