Additional Functions to Connect to Multiple LLCs

sk_closeNamed
Connection()

This function closes the connection with the specified connection ID between the application and the LLC.

Syntax

int sk_closeNamedConnection( int aConID);

How closeConnection works

The LLC no longer has a socket open to this application. However, the ConnectionManager object remains and causes the connection to re-establish in case of subsequent calls to sk_rcvAndDispatch() or attempts to send a message.

sk_getConnectionNameForConnection()

The function call sk_getConnectionNameForConnection() uses the connection ID to retrieve the connection name of the connection between the applications and the LLC.

Syntax

int sk_getConnectionNameForConnection( int aConID);

How getConnectionName works

You can call this function only after opening a socket to the LLC. To open the socket, send a harmless message through that connection.

sk_getLLCSocket
DescriptorForConnection()

The function sk_getLLCSocketDescriptorForConnection() returns the socket descriptor associated with the current application. You need this function if your application is connected to the LLC, to a database, or to another server.

Syntax

int sk_getLLCSocketDescriptorForConnection( int aConID);

Threadsafe Syntax

int skts_getLLCSocketDescriptor(int aConID);