Connecting to RAD in C
RAD instances establish connections by using the rc_connect_*
() set of functions. You can obtain connections for various transports such as TLS, TCP, and local UNIX socket. Each function returns a rc_conn_t
reference. This reference acts as a handle for interactions with RAD over its connection. Every connect function has one common argument, a locale to use for the connection. When locale is NULL
, the locale of the local client is used.
To close the connection, you must call the rc_disconnect
() function with the connection handle.