You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
912 B

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. # P2P Module
  2. P2P provides an abstraction around peer-to-peer communication.<br/>
  3. Communication happens via Reactors that react to messages from peers.<br/>
  4. Each Reactor has one or more Channels of communication for each Peer.<br/>
  5. Channels are multiplexed automatically and can be configured.<br/>
  6. A Switch is started upon app start, and handles Peer management.<br/>
  7. A PEXReactor implementation is provided to automate peer discovery.<br/>
  8. ## Channels
  9. Each peer connection is multiplexed into channels.
  10. The p2p module comes with a channel implementation used for peer
  11. discovery (called PEX, short for "peer exchange").
  12. <table>
  13. <tr>
  14. <td><b>Channel</b></td>
  15. <td>"PEX"</td>
  16. </tr>
  17. <tr>
  18. <td><b>Messages</b></td>
  19. <td>
  20. <ul>
  21. <li>pexRequestMsg</li>
  22. <li>pexResponseMsg</li>
  23. </ul>
  24. </td>
  25. </tr>
  26. </table>
  27. <hr />
  28. ## Resources
  29. * http://www.upnp-hacks.org/upnp.html