Modifier and Type | Method and Description |
---|---|
Link |
Interest.getLink()
Get the link object.
|
Blob |
Interest.getLinkWireEncoding()
Get the wire encoding of the link object.
|
Blob |
Interest.getLinkWireEncoding(WireFormat wireFormat)
Get the wire encoding of the link object.
|
void |
Node.onReceivedElement(ByteBuffer element) |
void |
Face.processEvents()
Process any packets to receive and call callbacks such as onData,
onInterest or onTimeout.
|
void |
Node.processEvents()
Process any packets to receive and call callbacks such as onData,
onInterest or onTimeout.
|
long |
Name.Component.toNumberWithMarker(int marker)
Interpret this name component as a network-ordered number with a marker
and return an integer.
|
long |
Name.Component.toSegment()
Interpret this name component as a segment number according to NDN naming
conventions for "Segment number" (marker 0x00).
|
long |
Name.Component.toSegmentOffset()
Interpret this name component as a segment byte offset according to NDN
naming conventions for segment "Byte offset" (marker 0xFB).
|
long |
Name.Component.toSequenceNumber()
Interpret this name component as a sequence number according to NDN naming
conventions for "Sequencing" (marker 0xFE).
|
long |
Name.Component.toTimestamp()
Interpret this name component as a timestamp according to NDN naming
conventions for "Timestamp" (marker 0xFC).
|
long |
Name.Component.toVersion()
Interpret this name component as a version number according to NDN naming
conventions for "Versioning" (marker 0xFD).
|
void |
ControlResponse.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this ControlResponse.
|
void |
ControlParameters.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this ControlParameters.
|
void |
Interest.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this Interest.
|
void |
Data.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this Data.
|
void |
DelegationSet.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this DelegationSet.
|
void |
Name.wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this Name.
|
void |
ControlResponse.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this ControlResponse.
|
void |
ControlParameters.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this ControlParameters.
|
void |
Link.wireDecode(Blob input,
WireFormat wireFormat)
Override to call the base class wireDecode then populate the list of
delegations from the content.
|
void |
Interest.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Interest.
|
void |
Data.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Data.
|
void |
DelegationSet.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this DelegationSet.
|
void |
Name.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Name.
|
void |
ControlResponse.wireDecode(ByteBuffer input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this ControlResponse.
|
void |
ControlParameters.wireDecode(ByteBuffer input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this ControlParameters.
|
void |
Interest.wireDecode(ByteBuffer input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this Interest.
|
void |
Data.wireDecode(ByteBuffer input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this Data.
|
void |
DelegationSet.wireDecode(ByteBuffer input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this DelegationSet, using
addUnsorted() to preserve the given order and possible duplicates.
|
void |
Name.wireDecode(ByteBuffer input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this Name.
|
void |
ControlResponse.wireDecode(ByteBuffer input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this ControlResponse.
|
void |
ControlParameters.wireDecode(ByteBuffer input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this ControlParameters.
|
void |
Interest.wireDecode(ByteBuffer input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Interest.
|
void |
Data.wireDecode(ByteBuffer input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Data.
|
void |
DelegationSet.wireDecode(ByteBuffer input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this
DelegationSet, using addUnsorted() to preserve the given order and
possible duplicates.
|
void |
Name.wireDecode(ByteBuffer input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this Name.
|
Modifier and Type | Method and Description |
---|---|
static void |
ProtobufTlv.decode(com.google.protobuf.Message.Builder message,
Blob input) |
static void |
ProtobufTlv.decode(com.google.protobuf.Message.Builder message,
ByteBuffer input)
Decode the input as NDN-TLV and update the fields of the Protobuf message
object.
|
void |
Tlv0_1_1WireFormat.decodeControlParameters(ControlParameters controlParameters,
ByteBuffer input)
Decode input as a control parameters in NDN-TLV and set the fields of the
controlParameters object.
|
void |
WireFormat.decodeControlParameters(ControlParameters controlParameters,
ByteBuffer input)
Decode input as a control parameters and set the fields of the
controlParameters object.
|
void |
Tlv0_1_1WireFormat.decodeControlResponse(ControlResponse controlResponse,
ByteBuffer input)
Decode input as a control parameters in NDN-TLV and set the fields of the
controlResponse object.
|
void |
WireFormat.decodeControlResponse(ControlResponse controlResponse,
ByteBuffer input)
Decode input as a control parameters and set the fields of the
controlResponse object.
|
void |
WireFormat.decodeData(Data data,
ByteBuffer input)
Decode input as a data packet and set the fields in the data object.
|
void |
Tlv0_1_1WireFormat.decodeData(Data data,
ByteBuffer input,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset)
Decode input as a data packet in NDN-TLV and set the fields in the data
object.
|
void |
WireFormat.decodeData(Data data,
ByteBuffer input,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset)
Decode input as a data packet and set the fields in the data object.
|
void |
Tlv0_1_1WireFormat.decodeDelegationSet(DelegationSet delegationSet,
ByteBuffer input)
Decode input as a sequence of NDN-TLV Delegation and set the fields of the
delegationSet object.
|
void |
WireFormat.decodeDelegationSet(DelegationSet delegationSet,
ByteBuffer input)
Decode input as a delegation set and set the fields of the
delegationSet object.
|
void |
Tlv0_1_1WireFormat.decodeEncryptedContent(EncryptedContent encryptedContent,
ByteBuffer input)
Decode input as a EncryptedContent in NDN-TLV and set the fields of the
encryptedContent object.
|
void |
WireFormat.decodeEncryptedContent(EncryptedContent encryptedContent,
ByteBuffer input)
Decode input as an EncryptedContent and set the fields of the
encryptedContent object.
|
void |
WireFormat.decodeInterest(Interest interest,
ByteBuffer input)
Decode input as an interest and set the fields of the interest object.
|
void |
Tlv0_1_1WireFormat.decodeInterest(Interest interest,
ByteBuffer input,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset)
Decode input as an interest in NDN-TLV and set the fields of the interest
object.
|
void |
WireFormat.decodeInterest(Interest interest,
ByteBuffer input,
int[] signedPortionBeginOffset,
int[] signedPortionEndOffset)
Decode input as an interest and set the fields of the interest object.
|
void |
Tlv0_1_1WireFormat.decodeLpPacket(LpPacket lpPacket,
ByteBuffer input)
Decode input as an NDN-TLV LpPacket and set the fields of the lpPacket object.
|
void |
WireFormat.decodeLpPacket(LpPacket lpPacket,
ByteBuffer input)
Decode input as an LpPacket and set the fields of the lpPacket object.
|
void |
Tlv0_1_1WireFormat.decodeName(Name name,
ByteBuffer input)
Decode input as a name in NDN-TLV and set the fields of the Name object.
|
void |
WireFormat.decodeName(Name name,
ByteBuffer input)
Decode input as a name and set the fields of the Name object.
|
Signature |
Tlv0_1_1WireFormat.decodeSignatureInfoAndValue(ByteBuffer signatureInfo,
ByteBuffer signatureValue)
Decode signatureInfo as an NDN-TLV signature info and signatureValue as the
related NDN-TLV SignatureValue, and return a new object which is a subclass
of Signature.
|
Signature |
WireFormat.decodeSignatureInfoAndValue(ByteBuffer signatureInfo,
ByteBuffer signatureValue)
Decode signatureInfo as a signature info and signatureValue as the related
SignatureValue, and return a new object which is a subclass of Signature.
|
void |
ElementReader.onReceivedData(ByteBuffer data)
Continue to read data until the end of an element, then call
elementListener.onReceivedElement(element ).
|
void |
ElementListener.onReceivedElement(ByteBuffer element)
This is called when an entire element is received.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TlvStructureDecoder.findElementEnd(ByteBuffer input)
Continue scanning input starting from offset_ to find the element end.
|
void |
TlvDecoder.finishNestedTlvs(int endOffset)
Call this after reading all nested TLVs to skip any remaining unrecognized
TLVs and to check if the input buffer position after the final nested TLV
matches the endOffset returned by readNestedTlvsStart.
|
boolean |
TlvDecoder.peekType(int expectedType,
int endOffset)
Decode the type from the input starting at the input buffer position, and
if it is the expectedType, then return true, else false.
|
ByteBuffer |
TlvDecoder.readBlobTlv(int expectedType)
Decode the type and length from the input starting at the input buffer
position, expecting the type to be expectedType.
|
boolean |
TlvDecoder.readBooleanTlv(int expectedType,
int endOffset)
Peek at the next TLV, and if it has the expectedType then read a type and
value, ignoring the value, and return true.
|
int |
TlvDecoder.readExtendedVarNumber(int firstOctet)
Do the work of readVarNumber, given the firstOctet which is greater than
or equal to 253.
|
int |
TlvDecoder.readNestedTlvsStart(int expectedType)
Decode the type and length from the input starting at the input buffer
position, expecting the type to be expectedType.
|
long |
TlvDecoder.readNonNegativeInteger(int length)
Decode a non-negative integer in NDN-TLV and return it.
|
long |
TlvDecoder.readNonNegativeIntegerTlv(int expectedType)
Decode the type and length from the input starting at the input buffer
position, expecting the type to be expectedType.
|
ByteBuffer |
TlvDecoder.readOptionalBlobTlv(int expectedType,
int endOffset)
Peek at the next TLV, and if it has the expectedType then call readBlobTlv
and return the value.
|
long |
TlvDecoder.readOptionalNonNegativeIntegerTlv(int expectedType,
int endOffset)
Peek at the next TLV, and if it has the expectedType then call
readNonNegativeIntegerTlv and return the integer.
|
int |
TlvDecoder.readTypeAndLength(int expectedType)
Decode the type and length from this's input starting at the input buffer
position, expecting the type to be expectedType and return the length.
|
int |
TlvDecoder.readVarNumber()
Decode a VAR-NUMBER in NDN-TLV and return it.
|
Modifier and Type | Method and Description |
---|---|
static double |
Schedule.fromIsoString(String dateString) |
void |
Schedule.wireDecode(Blob input)
Decode the input and update this Schedule object.
|
void |
EncryptedContent.wireDecode(Blob input)
Decode the input the default wire format and update this EncryptedContent.
|
void |
EncryptedContent.wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this
EncryptedContent.
|
void |
Schedule.wireDecode(ByteBuffer input)
Decode the input and update this Schedule object.
|
void |
EncryptedContent.wireDecode(ByteBuffer input)
Decode the input wire encoding using the default wire format and update
this EncryptedContent.
|
void |
EncryptedContent.wireDecode(ByteBuffer input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this
EncryptedContent.
|
Modifier and Type | Method and Description |
---|---|
void |
IdentityCertificate.wireDecode(Blob input,
WireFormat wireFormat)
Override to call the base class wireDecode then update the public key name.
|
void |
Certificate.wireDecode(Blob input,
WireFormat wireFormat)
Override to call the base class wireDecode then populate the certificate
fields.
|
Modifier and Type | Method and Description |
---|---|
void |
UdpTransport.processEvents()
Process any data to receive.
|
abstract void |
Transport.processEvents()
Process any data to receive.
|
void |
TcpTransport.processEvents()
Process any data to receive.
|
void |
AsyncTcpTransport.processEvents()
Do nothing since AsynchronousSocketChannel checks for incoming data.
|
Copyright © 2016. All rights reserved.