You are here: SwitchKit® Development Environment Programmer’s Guide > 4 Register Functions > sk_pplComponentRegister() / sk_pplComponentUnRegister()

sk_pplComponentRegister() / sk_pplComponentUnRegister()

Description

Use the sk_pplComponentRegister() function to receive PPLEventIndication messages for a particular component. This message is also available as sk_pplComponentRegisterOnConnection() and skts_pplComponentRegister().

Use the sk_pplComponentUnRegister() function to unregister to receive PPLEventIndication messages for a particular component. This message is also available as sk_pplComponentUnRegisterOnConnection() and skts_pplComponentUnRegister().

Syntax

int sk_pplComponentRegister(int aComponentID);

int sk_pplComponentUnRegister(int aComponentID);

int sk_pplComponentRegisterOnConnection(int aComponentID, int aConID);

int sk_pplComponentUnRegisterOnConnection(int aComponentID, int aConID);

Threadsafe Syntax

int skts_pplComponentRegister( int aComponentID, int aConID );

int skts_pplComponentUnRegister( int aComponentID, int aConID );

Parameters

The function parameters are shown in the table below.

Argument | Description
--- | ---
aComponentID | Specifies the PPL component number.
aConID | aConID is a connection identifier specified at connection creation time and used to indicate which LLC an application wishes to communicate with.

Return Values

The possible return values for this function:

SK_LOST_LLC | This return value indicates that your application lost contact with the LLC.

See Programmable Protocol Language.