Correct description

This commit is contained in:
simon.kagstrom 2009-11-08 09:16:10 +00:00
parent 2ce92d07e2
commit 4a183a000e

View File

@ -1135,21 +1135,14 @@ network_connection_error_t Network::ConnectFSM()
network_connection_error_t err; network_connection_error_t err;
/* See http://www.brynosaurus.com/pub/net/p2pnat/ for how this works. /* See http://www.brynosaurus.com/pub/net/p2pnat/ for how this works.
*
* For the server ("master"):
* 1. Send connect to the broker
* 2. Wait for broker to return the peer connection info (private
* and public address)
* 3. Until connected:
* 3.1 Send connection message to peer
* 3.2 Wait for reply from peer
* *
* For the client: * For the client:
* 1. Send connect to the broker * 1. Send connect to the broker
* 2. Wait for the broker to return list of peers * 2. Wait for the broker to return list of peers
* 3. Tell the broker who to connect to * 3. Tell the broker who to connect to
* 4. Wait for broker to return the peer connection info (private * 4. Select peer
* and public address) * 4.1 (master) Wait for broker to return peer address
* 4.2 (client) Connect to peer
* 5. Until connected: * 5. Until connected:
* 5.1 Send connection message to peer * 5.1 Send connection message to peer
* 5.2 Wait for reply from peer * 5.2 Wait for reply from peer