nn::nex::DirectTransport::SendUnreliable Member Function

Syntax

qResult SendUnreliable(
     StationID destId,
     qByte * buffer,
     qUnsignedInt32 size
);

Parameters

Name Description
in destId The StationID of the destination station.
in buffer Pointer to the data being sent.
in size Size of the data being sent. Set this argument to 1250 or less.

Return Values



Value Description
QRESULT_SUCCESS Sending succeeded.
QRESULT_ERROR(Transport, Unknown) The PRUDPUserProtocol::GetInstance function is NULL.
QRESULT_ERROR(Core, InvalidArgument) Wrong destId.
QRESULT_ERROR(Transport, ConnectionFailure) Connection was not established with the destination station.
QRESULT_ERROR(Transport, PacketBufferFull) Data cannot be sent because of packet buffer depletion.

Description

Sends data to the station specified as the destination, using unreliable communications. (Delivery of data is not guaranteed.)

To get the StationID, use the Station::GetStationID function.

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.

Revision History

2012/11/27
Added QRESULT_ERROR(Transport, PacketBufferFull) to the return values.
2012/10/04
Changed the parameter type from ConnectionID to StationID.
2012/01/26
Initial version.

CONFIDENTIAL