qResult SendReliable( StationID id, SubStreamID subStreamID, const qByte * pBuffer, qUnsignedInt32 size ); qBool SendReliable( CallContext * pContext, StationID id, SubStreamID subStreamID, const qByte * pBuffer, qUnsignedInt32 size );
SendReliable ( StationID, SubStreamID, const qByte *, qUnsignedInt32 )
|
Sends reliable data with a specified SubStreamID to a specific station. |
SendReliable ( CallContext *, StationID, SubStreamID, const qByte *, qUnsignedInt32 )
|
Sends reliable data with a specified SubStreamID to a specific station. |
To get the StationID
, use the Station::GetStationID
function. A ReliableSendBufferFull
error is returned when the send buffer is full. The ReliableSendBufferFull
error indicates that the send buffer was temporarily full. When this error occurs, dispatch the data and then wait briefly before trying to send the data again.
Returns a PacketBufferFull
error when the packet buffer does not have enough space. This error indicates that the packet buffer was temporarily insufficient. Dispatch the data and wait briefly before trying to send the data again. If PacketBufferFull
occurs at a high frequency, take measures to increase the packet buffer. For more information about packet buffer settings, see PacketBufferManager
.
By specifying the call context, you can detect whether reliable communication arrived with an asynchronous process. It is Success
when arrival is confirmed. If arrival cannot be confirmed, it does not complete. Even if the call context is canceled, reliable communication for which the send request succeeded continues to be sent.
To get the StationID
, use the Station::GetStationID
function. You can get the result from when the call context was finalized with the CallContext::GetOutcome
function. For the possible call context processing results, see the qResult
-type return values for the SendReliable
function.
CONFIDENTIAL