qResult SendUnreliableAll( const qByte * pBuffer, qUnsignedInt32 size );
Name | Description | |
---|---|---|
in | pBuffer | Specifies the data to send. |
in | size | Specifies the size of the send data. Use 1300 or less (or 1250 or less when not using a P2P topology). |
Value | Description |
---|---|
QSUCCESS(Core, Success) |
The send request was successful. |
QERROR(Core, InvalidSequence) |
The DirectStream is not enabled. |
QERROR(Transport, Unknown) |
The PRUDPUserProtocol::GetInstance function is NULL . |
QERROR(Core, InvalidArgument) |
Invalid argument value. (pBuffer is NULL or size has been exceeded.)) |
QERROR(Transport, ConnectionFailure) |
There are no stations for which the send was successful. |
QERROR(Transport, PacketBufferFull) |
Data could not be sent due to packet buffer exhaustion. The application needs to handle this. (The return of this error by this function is not a fatal error, which can be retrieved with NetZ::GetFatalError .) |
Sends unreliable data to all stations participating in a session.
Returns a PacketBufferFull
error when the packet buffer does not have enough space. This error indicates that the packet buffer was temporarily insufficient. Increase the buffer as needed. For more information about packet buffer settings, see PacketBufferManager
.
QRESULT_SUCCESS
and QRESULT_ERROR
return values to QSUCCESS
and QERROR
.
QRESULT_ERROR(Transport, PacketBufferFull)
to the return values.CONFIDENTIAL