Package net.i2p.router.transport.udp
Class PacketBuilder
- java.lang.Object
-
- net.i2p.router.transport.udp.PacketBuilder
-
class PacketBuilder extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PacketBuilder.Fragment
Class for passing multiple fragments to buildPacket()
-
Field Summary
Fields Modifier and Type Field Description static int
ABSOLUTE_MAX_ACKS
one byte fieldstatic int
DATA_HEADER_SIZE
not including acks.static int
FRAGMENT_HEADER_SIZE
4 byte msg ID + 3 byte fragment infostatic int
HEADER_SIZE
if no extended options or rekey data, which we don't support = 37static int
IP_HEADER_SIZE
IPv4 onlystatic int
IPV6_HEADER_SIZE
static int
MIN_DATA_PACKET_OVERHEAD
74static int
MIN_IPV6_DATA_PACKET_OVERHEAD
94(package private) static int
PRIORITY_HIGH
static int
UDP_HEADER_SIZE
Same for IPv4 and IPv6
-
Constructor Summary
Constructors Constructor Description PacketBuilder()
-
-
-
Field Detail
-
HEADER_SIZE
public static final int HEADER_SIZE
if no extended options or rekey data, which we don't support = 37- See Also:
- Constant Field Values
-
FRAGMENT_HEADER_SIZE
public static final int FRAGMENT_HEADER_SIZE
4 byte msg ID + 3 byte fragment info- See Also:
- Constant Field Values
-
DATA_HEADER_SIZE
public static final int DATA_HEADER_SIZE
not including acks. 46- See Also:
- Constant Field Values
-
IP_HEADER_SIZE
public static final int IP_HEADER_SIZE
IPv4 only- See Also:
- Constant Field Values
-
UDP_HEADER_SIZE
public static final int UDP_HEADER_SIZE
Same for IPv4 and IPv6- See Also:
- Constant Field Values
-
MIN_DATA_PACKET_OVERHEAD
public static final int MIN_DATA_PACKET_OVERHEAD
74- See Also:
- Constant Field Values
-
IPV6_HEADER_SIZE
public static final int IPV6_HEADER_SIZE
- See Also:
- Constant Field Values
-
MIN_IPV6_DATA_PACKET_OVERHEAD
public static final int MIN_IPV6_DATA_PACKET_OVERHEAD
94- See Also:
- Constant Field Values
-
ABSOLUTE_MAX_ACKS
public static final int ABSOLUTE_MAX_ACKS
one byte field- See Also:
- Constant Field Values
-
PRIORITY_HIGH
static final int PRIORITY_HIGH
- See Also:
- Constant Field Values
-
-