You are here: SwitchKit® Development Environment Programmer’s Guide > 6 Handler Functions > sk_pushChannelHandler()

sk_pushChannelHandler()

Description

The sk_pushChannelHandler() function pushes the handler function aHandlerFunc onto the handler stack for the specified span and channel. This function is also available as skts_pushChannelHandler().

Syntax

int sk_pushChannelHandler(int aSpan, int aChannel, void *aTag, HandlerFunc* aHanderFunc);

Threadsafe Syntax

int skts_pushChannelHandler( int aSpan, int aChannel, void *aTag, HandlerFunc* aHanderFunc);

Parameters

The function parameters are shown in the table below.

Argument | Description
--- | ---
aSpan | Secifies the span.
aChannel | Specifies the channel.
aTag | An application defined pointer which will be returned to the application when a handler is invoked.
aHandlerFunc | A pointer to a function that is designed to handle messages.

Return Values

Always returns OK.