Functions
noPoll Message: functions for handling and using noPoll messages (websocket messages)

Functions

const unsigned char * nopoll_msg_get_payload (noPollMsg *msg)
 Allows to get a reference to the payload content inside the provided websocket message. More...
 
int nopoll_msg_get_payload_size (noPollMsg *msg)
 Allows to get the payload byte length stored on the provided message. More...
 
nopoll_bool nopoll_msg_is_final (noPollMsg *msg)
 Allows to get if the provided message reference has FIN flag on (or off) to indicate if it is a final frame. More...
 
nopoll_bool nopoll_msg_is_fragment (noPollMsg *msg)
 Allows to check if the message represents a frame fragment. More...
 
noPollMsgnopoll_msg_join (noPollMsg *msg, noPollMsg *msg2)
 Allows to join the provided noPollMsg references to create a newly allocated message (or reusing same reference but increasing reference counting) that contains both content. More...
 
noPollOpCode nopoll_msg_opcode (noPollMsg *msg)
 Get message OpCode to get the type of message that was received. More...
 
nopoll_bool nopoll_msg_ref (noPollMsg *msg)
 Allows to acquire a reference to the provided websocket message. More...
 
int nopoll_msg_ref_count (noPollMsg *msg)
 Allows to get current reference counting for the provided message. More...
 
void nopoll_msg_unref (noPollMsg *msg)
 Allows to release the reference acquired, finished the object if all references are terminated. More...
 

Detailed Description