nl:: Weave:: Profiles:: BDX_Development:: SendAccept
#include <src/lib/profiles/bulk-data-transfer/Development/BDXMessages.h>
The SendAccept message is used to accept a proposed exchange when the sender is the initiator.
Summary
Inheritance
Direct Known Subclasses: nl::Weave::Profiles::BDX_Development::ReceiveAccept
Constructors and Destructors |
|
---|---|
SendAccept(void)
The no-arg constructor with defaults for the send accept message.
|
Public attributes |
|
---|---|
mMaxBlockSize
|
uint16_t
Maximum block size we decided on.
|
mMetaData
|
Optional TLV Metadata.
|
mTransferMode
|
uint8_t
Transfer mode that we decided on.
|
mVersion
|
uint8_t
Version of the BDX protocol we decided on.
|
Public functions |
|
---|---|
init(uint8_t aVersion, uint8_t aTransferMode, uint16_t aMaxBlockSize, ReferencedTLVData *aMetaData)
|
Initialize a SendAccept message.
|
operator==(const SendAccept &) const
|
bool
Equality comparison between SendAccept messages.
|
pack(PacketBuffer *aBuffer)
|
Pack a send accept message into an PacketBuffer.
|
packedLength(void)
|
uint16_t
Returns the packed length of this send accept message.
|
Public static functions |
|
---|---|
parse(PacketBuffer *aBuffer, SendAccept & aResponse)
|
Parse data from an PacketBuffer into a SendAccept message format.
|
Public attributes
mMaxBlockSize
uint16_t mMaxBlockSize
Maximum block size we decided on.
mTransferMode
uint8_t mTransferMode
Transfer mode that we decided on.
mVersion
uint8_t mVersion
Version of the BDX protocol we decided on.
Public functions
SendAccept
SendAccept( void )
The no-arg constructor with defaults for the send accept message.
init
WEAVE_ERROR init( uint8_t aVersion, uint8_t aTransferMode, uint16_t aMaxBlockSize, ReferencedTLVData *aMetaData )
Initialize a SendAccept message.
Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
Parameters |
|
||||||||
Return Values |
|
operator==
bool operator==( const SendAccept & ) const
Equality comparison between SendAccept messages.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
true iff they have all the same fields.
|
pack
WEAVE_ERROR pack( PacketBuffer *aBuffer )
Pack a send accept message into an PacketBuffer.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|
packedLength
uint16_t packedLength( void )
Returns the packed length of this send accept message.
Details | |
---|---|
Returns |
length of the message when packed
|
Public static functions
parse
WEAVE_ERROR parse( PacketBuffer *aBuffer, SendAccept & aResponse )
Parse data from an PacketBuffer into a SendAccept message format.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
||||
Return Values |
|