rt_set_userdata
Description
The rt_set_userdata function sets data into an RTTP socket, which can be retrieved later via the rt_get_userdata function.
Syntax:
void rt_set_userdata(RTEngine engine, RTSOCKET s, int index, void *userdata);
Parameters:
engine:
The pointer to the RTTP engine instance returned by rt_init().
s:
The descriptor identifying the RTTP socket. If s is NULL, userdata will be set into the engine instance.
index: The user data index, used to distinguish among multiple user data items; supports up to 10.
userdata: The data to be set into the RTTP socket.
Return Value:
This function does not return a value.