Skip to main content

rt_readable

Description

The rt_readable function determines whether there is data waiting to be received on an RTTP socket, i.e., whether a call to the rt_recv function can successfully receive data.

Syntax:

int rt_readable(RTEngine engine, RTSOCKET s);

Parameters:

engine: The pointer to the RTTP engine instance returned by rt_init().

s: The descriptor identifying the RTTP socket.

Return Value:

If the RTTP socket is readable, the rt_readable function returns 1; otherwise, the return value is 0.