void nopoll_ctx_set_protocol_version ( noPollCtx ctx,
int  version 

Allows to change the protocol version that is send in all client connections created under the provided context and the protocol version accepted by listener created under this context too.

This is a really basic (mostly fake) protocol version support because it only allows to change the version string sent (but nothing more for now). It is useful for testing purposes.

ctxThe noPoll context where the protocol version change will be applied.
versionThe value representing the protocol version. By default this function isn't required to be called because it already has the right protocol value configured (13).

References nopoll_return_if_fail.