sk_unpackMessage()

Description

The sk_unpackMessage() function takes the character buffer and size returned by sk_rcvMessage() and unpacks it into a message structure.

Syntax

int sk_unpackMessage(char *aBuffer, int aBufSize, MsgStruct *aMsgStruct);

Parameters

The function parameters are shown in the table below.

Argument

Description

aBuffer

Pointer to a packed message.

aBufSize

Size of the packed message.

aMsgStruct

Pointer to a generic C Structure representing a message.

Return Values

Possible return values for this function:

SK_LOST_LLC

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

SK_INTERNAL_
ERROR

The message could not be unpacked.