java.lang.Object
com.act365.net.ip.IP4Writer
- public class IP4Writer
- extends java.lang.Object
IP4Writer writes IP4Message objects to a DatagramPacket.
Fragmentation isn't supported - all messages are created
with the DONT_FRAGMENT bit set and with offset set to 0.
However, the identified is increased in order to identify
packets uniquely.
|
Field Summary |
(package private) static short |
identifier
|
|
Method Summary |
static byte[] |
write(byte typeofservice,
short timetolive,
byte protocol,
byte[] source,
byte[] destination,
byte[] data)
Builds a full IP4Message object and writes it to a buffer. |
(package private) static byte[] |
write(IP4Message message)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
identifier
static short identifier
IP4Writer
public IP4Writer()
write
static byte[] write(IP4Message message)
write
public static byte[] write(byte typeofservice,
short timetolive,
byte protocol,
byte[] source,
byte[] destination,
byte[] data)
- Builds a full IP4Message object and writes it to a buffer.
It is assumed that no options will be specified.