3.1.1.3 Connection Manager Object

The Connection Manager object encapsulates the state for the connection between one peer and another. Again, the connecting peer is the client and the peer hosting the connection is the host.

Roles: One peer is the client and the other peer is the host.

  • The client is the peer that sends the Connection Request message and waits for the Connection Response Message.

  • The host is the peer that receives the Connection Request message and sends the Connection Response Message.

Client State: The current role of the Connection Manager object. For the client, the state can be one of the following values:

Value

Meaning

Waiting for Connection Response

The object has published the Connection Request message (section 2.2.2.3.2) and is waiting to receive the Connection Response message (section 2.2.2.3.3).

Connection Failed

The connection has failed – either the Connection Request message (section 2.2.2.3.2) has timed out or Authentication has failed.

Waiting for Authentication Response

The object has received the Connection Response message (section 2.2.2.3.3) and has published the Authentication Request message

Ready

The object has received the Authentication Response message and is ready to initiate the session with the peer. 

Host State: The current role of the Connection Manager object. For the host, the state can be one of the following values:

Value

Meaning

Waiting for Connection Request

The object has published the Presence Response message (section 2.2.2.2.2) and is waiting to receive the Connection Request message (section 2.2.2.3.2).

Waiting for Authentication Request

The object has received the Connection Request message and has published the Connection Response message – which contains an Authentication Challenge. It’s waiting for an Authentication Request.

Connection Failed

The object has received the Authentication Request and the connecting device has failed authentication.

Ready

The object has published the Authentication Response message and is ready to engage in a session with the peer.