Connecting to a Local RAD Instance in C

You can connect to a local instance using the rc_connect_unix() function. An implicit authentication is performed against your user ID and most RAD tasks that you request with this connection are performed with the privileges available to your user account.

The rc_connect_unix() function takes the following arguments:

  • A string, path of the UNIX socket

  • A string, locale for the connection

If the value of socket path is NULL, the default RAD UNIX socket path is used. If the value of locale is NULL, the locale of the local client is used.

Example 2-1 C Language – Creating a RAD Local Connection

#include <rad/radclient.h>
rc_conn_t conn = rc_connect_unix(NULL, NULL);