# 7 Message Functions

This chapter provides information about message structures and macros, as well as information on sending and receiving message functions that are available in SwitchKit. It provides prototype information, possible error return values, and a description of what the function does.

Most functions return an integer value. Upon successful completion, that return value is OK (0). Non-zero return values indicate some error conditions. Each function lists the associated error conditions.

Some functions return pointers; those functions do not have a status value indicating success or failure.

In this section:

Message Headers in C

Message Structure Macros

Message Macros for C Programmers

Instantiating a SwitchKit Message

Messages in C++

Base Classes

Message Class Macros

sk_packAutoStorage()

sk_packMessage()

sk_sendMessage()

sk_sendMessageWithHandler()

sk_sendMessageWithTag()

sk_sendMsgStruct()

sk_unpackAutoStorage()

sk_unpackMessage()

sk_rcvAndDispatch()

sk_rcvAndDispatchAutoStorage()

sk_rcvMessage()