# MSPP function sequence and state machine

This topic provides the following illustrations:

- MSPP function setup and tear down sequence

- MSPP state machine

When setting up and tearing down MSPP connections, keep the following in mind:

- The application can create endpoints and channels in any sequence.

- Applications can interrupt a connection either by disabling the channel (with mspDisableChannel) or by disabling one of its component connection endpoints (with mspDisableEndpoint).

- Channel filters cannot receive commands until the channel is connected.

## MSPP function setup and tear down sequence

The following illustration shows a typical MSPP function sequence for setting up MSPP connections.

The following illustration shows a typical MSPP function sequence for tearing down MSPP connections.

## MSPP state machine

The following illustration shows is a state machine for creating and destroying an MSPP connection.