Constructor and Description |
---|
Tcp.Builder()
Create a new builder using the defaults:
|
Tcp.Builder(Tcp tcp)
Copy constructor builder initialized from the passed in protocol.
|
Modifier and Type | Method and Description |
---|---|
Tcp.Builder |
ackNum(long ackNum)
Sets the acknowledgment number.
|
Tcp |
build()
Creates a new protocol instance from this builder.
|
Tcp.Builder |
dstPort(TcpUdpPort dstPort)
Sets the destination port.
|
Tcp.Builder |
flags(int flags)
Sets the flags.
|
Tcp.Builder |
options(byte[] options)
Sets the options.
|
Tcp.Builder |
seqNum(long seqNum)
Sets the sequence number.
|
Tcp.Builder |
srcPort(TcpUdpPort srcPort)
Sets the source port.
|
Tcp.Builder |
urgentPtr(int urgentPtr)
Sets the urgent pointer.
|
Tcp.Builder |
winSize(int winSize)
Sets the window size.
|
public Tcp.Builder()
dstPort = 0 srcPort = 0
public Tcp.Builder(Tcp tcp)
tcp
- builder is initialed from this protocol's datapublic Tcp build()
public Tcp.Builder dstPort(TcpUdpPort dstPort)
dstPort
- destination portpublic Tcp.Builder srcPort(TcpUdpPort srcPort)
srcPort
- source portpublic Tcp.Builder seqNum(long seqNum)
seqNum
- sequence numberpublic Tcp.Builder ackNum(long ackNum)
ackNum
- acknowledgment numberpublic Tcp.Builder flags(int flags)
flags
- flag bitspublic Tcp.Builder winSize(int winSize)
winSize
- window sizepublic Tcp.Builder urgentPtr(int urgentPtr)
urgentPtr
- urgent pointerpublic Tcp.Builder options(byte[] options)
options
- options byte arrayCopyright © 2015. All Rights Reserved.