void nopoll_conn_set_on_msg ( noPollConn conn,
noPollOnMessageHandler  on_msg,
noPollPtr  user_data 
)

Allows to configure an on message handler on the provided connection that overrides the one configured at noPollCtx.

Parameters
connThe connection to be configured with a particular on message handler.
on_msgThe on message handler configured.
user_dataUser defined pointer to be passed in into the on message handler when it is called.