void nopoll_conn_set_accepted_protocol ( noPollConn conn,
const char *  protocol 
)

Allows to configure accepted protocol on the provided connection.

Parameters
connThe connection where the accepted protocol will be notified. This function is only useful at server side to notify accepted protocol to the connecting client. Caller is entirely responsible on setting an appropriate value that is understood by the client. No especial check is done on the value provided to this function.
protocolThe protocol to configure in the reply, that is, the protocol accepted by the server.

If no protocol is configured and the client requests a protocol, the server will reply by default the same accepting it.

References nopoll_strdup().