struct BDXTransfer
Defined at line 252 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/bulk-data-transfer/Development/BDXTransferState.h
This structure contains data members representing an active BDX transfer.
These objects are used by the BdxProtocol to maintain protocol state.
They are managed by the BdxServer, which handles creating and initializing
new transfers, including managing Connections and ExchangeContexts.
Public Members
ExchangeContext * mExchangeContext
void * mAppState
uint8_t mTransferMode
uint8_t mVersion
bool mIsInitiated
bool mIsAccepted
bool mIsCompletedSuccessfully
bool mAmInitiator
bool mAmSender
bool mIsWideRange
bool mFirstQuery
ReferencedString mFileDesignator
uint16_t mMaxBlockSize
uint64_t mStartOffset
uint64_t mLength
uint64_t mBytesSent
uint32_t mBlockCounter
BDXHandlers mHandlers
WEAVE_ERROR (*)(BDXTransfer &) mNext
Public Methods
void Shutdown ()
void Reset ()
bool IsAsync ()
bool IsDriver ()
void SetHandlers (BDXHandlers aHandlers)
uint16_t GetDefaultFlags (bool aExpectResponse)
WEAVE_ERROR DispatchReceiveAccept (ReceiveAccept * aReceiveAcceptMsg)
Dispatchers simply check whether a handler has been set and then call it if so.
Therefore, these should be used as the public interface for calling callbacks,
which should never be touched directly by outside applications. It is
possible that a future revision of BDXTransfer will use a delegate object
rather than storing individual pointers to each of the callbacks.
WEAVE_ERROR DispatchSendAccept (SendAccept * aSendAcceptMsg)
void DispatchRejectHandler (StatusReport * aReport)
void DispatchPutBlockHandler (uint64_t aLength, uint8_t * aDataBlock, bool aLastBlock)
void DispatchGetBlockHandler (uint64_t * aLength, uint8_t ** aDataBlock, bool * aLastBlock)
void DispatchErrorHandler (WEAVE_ERROR anErrorCode)
void DispatchXferErrorHandler (StatusReport * aXferError)
void DispatchXferDoneHandler ()