Constructor and Description |
---|
Icmp.Builder()
Create a new builder using the defaults:
|
Icmp.Builder(Icmp icmp)
Copy constructor builder initialized from the passed in protocol.
|
Modifier and Type | Method and Description |
---|---|
Icmp |
build()
Creates a new protocol instance from this builder.
|
Icmp.Builder |
bytes(byte[] bytes)
Sets the payload bytes.
|
Icmp.Builder |
ident(int ident)
Sets the identifier for
IcmpTypeCode.ECHO_REQ or
IcmpTypeCode.ECHO_REPLY messages. |
Icmp.Builder |
seqNum(int seqNum)
Sets the sequence number for
IcmpTypeCode.ECHO_REQ or
IcmpTypeCode.ECHO_REPLY messages. |
Icmp.Builder |
typeCode(IcmpTypeCode typeCode)
Sets the type/code enumeration..
|
public Icmp.Builder()
typeCode = ECHO_REQ bytes = EMPTY_BYTES
public Icmp.Builder(Icmp icmp)
icmp
- builder is initialed from this protocol's datapublic Icmp build()
public Icmp.Builder typeCode(IcmpTypeCode typeCode)
typeCode
- type/code enumerationpublic Icmp.Builder ident(int ident)
IcmpTypeCode.ECHO_REQ
or
IcmpTypeCode.ECHO_REPLY
messages.ident
- identifier valuepublic Icmp.Builder seqNum(int seqNum)
IcmpTypeCode.ECHO_REQ
or
IcmpTypeCode.ECHO_REPLY
messages.seqNum
- sequence number valuepublic Icmp.Builder bytes(byte[] bytes)
bytes
- payload bytesCopyright © 2015. All Rights Reserved.