UDT Reference: CUDT Methods |
The getCurrSndBufSize method reads the current size of data in UDT to be sent.
int getCurrSndBufSize( |
NONE.
The size of the data buffers waiting in the sending queue to be sent.
A CUDTException exception can be threw out if the UDT entity is not connected or the connection has been broken.
The getCurrSndBufSize method returns the total buffer size in the sending queue.
It is specially useful when the application needs to check if all the data has been sent out (0 is returned), or a non-blocking sender wants to check how many data has been in the queue (so that it will not use up the physical memory).