UDT Reference: CUDT Methods

getCurrSndBufSize

The getCurrSndBufSize method reads the current size of data in UDT to be sent.

int getCurrSndBufSize(
);

Parameters

NONE.

Return Values

The size of the data buffers waiting in the sending queue to be sent.

Exceptions

A CUDTException exception can be threw out if the UDT entity is not connected or the connection has been broken.

Description

The getCurrSndBufSize method returns the total buffer size in the sending queue. The return value is not exactly the size of the data that has not been acknowledged, but the aggregate size of the application buffer in the queue, even part of one buffer has been acknowledged.

It is specially useful when the application need to check if all the data has been sent out (0 is returned), or a non-blocking sender want to check how many data has been in the queue (so it is will not use up the physical memory).

See Also

send