mg_set_user_connection_data( conn, data );| Parameter | Type | Description | 
|---|---|---|
| conn | struct mg_connection * | connection to add the user data | 
| data | void * | Pointer to the user data | 
none
The function mg_set_user_connection_data() can be used to add or change the user data pointer attached to a connection. Using the value NULL in the call will remove a previously assigned user data pointer.