axl_bool vortex_connection_do_greetings_exchange ( VortexCtx ctx,
VortexConnection connection,
VortexConnectionOpts options,
int  timeout 
)

Do greetings exchange (BEEP session initialization) on the provided connection.

Parameters
ctxThe context where the operation will take place.
connectionThe connection where the greetings exchange will take place.
optionsThe set of options to be applied on the connection that can be useful for greetings exchange (for example: greetings features).
timeoutA timeout defined by the caller under which the operation should finish.
Returns
axl_true in the case greetings exchange finished properly, without errors. Otherwise axl_false is returned and the connection is flaged as unconnected with the appropiate status (vortex_connection_get_status) and error message (vortex_connection_get_message).

References READ_OPERATIONS, vortex_connection_get_data(), vortex_connection_get_message(), vortex_connection_is_ok(), vortex_connection_parse_greetings_and_enable(), vortex_connection_set_blocking_socket(), vortex_connection_set_data(), vortex_connection_set_data_full(), VortexConnectionError, and VortexGreetingsFailure.

Referenced by vortex_external_connection_new().