You are here: SwitchKit Programmer’s Guide > 7 Message Functions > sk_unpackMessage()
Description
The sk_unpackMessage() function takes the character buffer and size returned by sk_rcvMessage() and unpacks it into a message structure.
int sk_unpackMessage(char *aBuffer, int aBufSize, MsgStruct *aMsgStruct);
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. |
Possible return values for this function:
SK_LOST_LLC |
This return value indicates that your application lost contact with the LLC. |
SK_INTERNAL_ |
The message could not be unpacked. |