Qore DataStreamClient Module Reference  1.2
DataStreamClient::DataStreamRecvMessage Class Referenceabstract

this class can be used to send and receive data using the DataStream protocol More...

Inheritance diagram for DataStreamClient::DataStreamRecvMessage:

Public Member Methods

nothing recvData (any data)
 receives decoded data from the remote end and calls recvDataImpl() More...
 
nothing recvDataDone (*string err)
 this method is called when all data has been received; this method calls recvDataDoneImpl() More...
 

Private Member Methods

nothing recvDataDoneImpl (*string err)
 this method is called when all data has been received More...
 
abstract nothing recvDataImpl (any data)
 reimplement this method in subclasses to receive decoded and deserialized data More...
 

Detailed Description

this class can be used to send and receive data using the DataStream protocol

Member Function Documentation

◆ recvData()

nothing DataStreamClient::DataStreamRecvMessage::recvData ( any  data)

receives decoded data from the remote end and calls recvDataImpl()

Parameters
datathe argument passed to this callback is the decoded and deserialized data in the message

◆ recvDataDone()

nothing DataStreamClient::DataStreamRecvMessage::recvDataDone ( *string  err)

this method is called when all data has been received; this method calls recvDataDoneImpl()

Parameters
errthis argument is nothing the sender does not report a send error, otherwise it's a single string giving the send error reported by the sending side in the DataStream-Error trailer record

◆ recvDataDoneImpl()

nothing DataStreamClient::DataStreamRecvMessage::recvDataDoneImpl ( *string  err)
private

this method is called when all data has been received

Parameters
errthis argument is nothing the sender does not report a send error, otherwise it's a single string giving the send error reported by the sending side in the DataStream-Error trailer record

◆ recvDataImpl()

abstract nothing DataStreamClient::DataStreamRecvMessage::recvDataImpl ( any  data)
privatepure virtual

reimplement this method in subclasses to receive decoded and deserialized data

Parameters
datathe argument passed to this callback is the decoded and deserialized data in the message