You are here: SwitchKit® Development Environment - TCAP Interface User’s Guide > 4 SKIM Sample Application > Step One: Creating a connection with LLC using SwitchKit
Step One: Creating a connection with LLC using SwitchKit
The API function described in this section allows you to create a connection with LLC using SwitchKit.
{
int ret;
/* create the connection */
ret = skts_createConnection(CONN_ID, CONN_LABEL, CONN_NAME,
SKIM_FALSE,
PRI_IP, PRI_PORT,
BACK_IP, BACK_PORT);
if (ret == 0)
{
fprintf(stderr, "Error connecting to switch\n");
return (SKIM_EINVALIDARGS);
}
return (SKIM_SUCCESS);
}