qBool Send( CallContext * pContext, StationID id, StreamType type, const qByte * pBuffer, qUnsignedInt32 size );
Name | Description | |
---|---|---|
inout | pContext |
Specifies the call context. |
in | id |
Specifies the StationID for the destination station. |
in | type |
Specifies the communication type. |
in | pBuffer |
Specifies the data to send. |
in | size |
Specifies the size of the send data. Set this parameter to 32,768 or less for reliable communication. For other types of communication, set it to 1,300 or less (1,250 or less for topologies other than P2P). |
Value | Description |
---|---|
true |
The send request was successful. |
false |
The send request failed |
Sends data to a specific station.
By specifying the call context, you can detect whether reliable communication arrived with an asynchronous process. For reliable communication, if arrival was confirmed, it returns Success
. If arrival cannot be confirmed, it does not complete. For non-reliable communication, the call context is finalized at the end of the call. 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 Send
function.
ConnectionID
to StationID
.CONFIDENTIAL