3.1.1.2 Discovery Object
The Discovery object encapsulates the state for the discovery of one peer from another. Again, the discovering peer is the client and the discovered peer is the host.
Roles: One peer is the client and the other peer is the host.
The client is the peer that sends the Presence Request message and waits for the Presence Response Message.
The host is the peer that receives the Presence Request message and sends the Presence Response Message.
Client State: The current role of the Discovery object. For the client, the state can be one of the following values:
Value |
Meaning |
---|---|
Waiting for Presence Response |
The object has published the Presence Request message (section 2.2.2.2.1) and is waiting to receive the Presence Response message (section 2.2.2.2.2). |
Ready |
The object has received the Presence Response message and has the basic information it needs to request a connection with the other peer. |
Host State: The current role of the Discovery object. For the host, the state can be one of the following values:
Value |
Meaning |
---|---|
Waiting for Presence Request |
The object is waiting to receive the Presence Response message (section 2.2.2.2.2). |
Ready |
The object has sent the Presence Response message and has sent the basic information it to facilitate a connection request. |