3.1 Peer Details
This section defines peer roles in the Near Field Proximity: Bidirectional Services Protocol.
In a socket-based connection between two peer applications, one peer has the role of client, and the other peer has the role of server. The roles are distinguished as follows:
The client is the peer that sends the Session Activation message (section 2.2.11) and waits for the Session ACK message (section 2.2.10).
The server is the peer that receives the Session Activation message and sends the Session ACK message.
Possible states and state transitions of the client and server roles are described in section 3.1.1.4.
In an OOB connection between two peers, one peer has the role of connector, and the other peer has the role of listener. The roles are distinguished as follows:
The connector is the peer that sends the OOB Connector Service Activation message (section 2.2.5) and waits for the OOB Connector Service ACK message (section 2.2.4).
The listener is the peer that receives the OOB Connector Service Activation message and sends the OOB Connector Service ACK message.
Possible states and state transitions of the connector and listener roles are described in section 3.1.1.2.