void vortex_connection_block ( VortexConnection conn,
axl_bool  enable 
)

Enable/disable connection blocking on the provided reference.

Activating the connection blocking will cause the BEEP session associated to stop accepting any data. This is done by signaling the vortex reader engine to not watch for status change on the connection provided.

The connection is still able to send content through its opened channels but no content will be received.

Parameters
connThe connection to (un)block.
enableAccording to this value the connection will be blocked (axl_true) otherwise axl_false must be used to make the connection to accept incoming data.

The function can also be used to block listener connections. The function do not block connections accepted due to the listener.

References vortex_connection_get_ctx().