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.

 

 

Application Code

{

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);

}