nn::nex::DirectStream::SendAll Member Function

Syntax

qResult SendAll(
     StreamType type,
     const qByte * pBuffer,
     qUnsignedInt32 size
);

Parameters

Name Description
in type Specifies the communication type. Reliable communication cannot be specified.
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).

Return Values



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.)

Description

Sends 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. 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.

Revision History

2014/04/16
Changed the notation of the QRESULT_SUCCESS and QRESULT_ERROR return values to QSUCCESS and QERROR.
2012/12/11
Added QRESULT_ERROR(Transport, PacketBufferFull) to the return values.
2012/04/10
Initial version.

CONFIDENTIAL