# 2 Connection Management

This chapter describes the connection management functions available in SwitchKit, as well as the SwitchKit API messages for application connection management.The chapter also provides prototype information, possible error return values, and a description of what the function does.

Most functions return an integer value. Upon successful completion, that return value is OK (0). A non-zero return value indicates some error condition. Each function lists the associated error conditions.

Some functions return pointers; those functions do not have a status value indicating success or failure.

In this section:

Introduction to Connection Management

Applications Connecting to Multiple LLCs

sk_createConnectionWithID()

sk_*OnConnection()

Additional Functions to Connect to Multiple LLCs

Connecting Legacy Applications to Multiple LLCs

sk_createConnection()

sk_createConnectionWithID()

Additional Functions for Legacy Applications

Applications Connecting to One LLC

sk_initializeConnection() / sk_initializeForcedConnection()

Additional Functions used with One LLC

Functions used in all Connection Models

APIs used in all Connection Models