Skip to main content

rt_connected

Description

The rt_connected function determines whether an RTTP socket connection has been established with a remote endpoint.

Syntax:

int rt_connected(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 connected, rt_connected returns 1; otherwise, the return value is 0.