UDT Reference: CUDT Methods

requestRate

The setRate method assigns the initial sending rate for a server.

void requestRate(

   const int& rate
);

Parameters

rate
[in] The assigned sending rate, in bps (bits per second).

Return Values

NONE.

Exceptions

A CUDTException exception can be threw out if the rate is not more than 0.

Description

The requestRate method is only useful for a client UDT. The rate is sent to the server in the handshake packet and compared with the local server initial sending rate. The lower rate will be the final sending rate of the server UDT.

To set local sending rate, setRate should be used instead of requestRate.

See Also

setRate