You are here: SwitchKit® Development Environment Programmer’s Guide > 3 Channel Management > sk_broadcastLoad()

sk_broadcastLoad()

Description

Your application modules can update their load with the LLC by a call to sk_broadcastLoad(). The load tells the LLC how busy the process is. High values are busier than low values.

If the processes do not call sk_broadcastLoad(), then the LLC distributes the messages in an alternating manner between all available application modules.

This function is also available as sk_broadcastLoadOnConnection() and skts_broadcastLoad().

Syntax

int sk_broadcastLoad(double aLoadFactor);

int sk_broadcastLoadOnConnection(double aLoadFactor, int aConID);

Threadsafe Syntax

int skts_broadcastLoad(double aLoadFactor, int aConID );

Parameters

The function parameters are shown in the table below.

Argument | Description
--- | ---
aLoadFactor | The load value changes the load distribution.
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

Possible return values for this function:

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