Direct TCP/IP connections in P2P apps

前端 未结 3 1401
粉色の甜心
粉色の甜心 2020-12-10 08:26

From a Joel\'s post on Copilot:

Direct Connect! We’ve always done everything we can to make sure that Fog Creek Copilot can connect in any netw

3条回答
  •  难免孤独
    2020-12-10 09:17

    I believe the simple version is that they drop the server connection and replace it with the P2P connection.

    Something along the lines of:

    1. Machine1 connects to copilot's servers.
    2. Machine1 connects to copilot's servers.
    3. Machine1 connects to copilot's servers.
    4. Machine2 subsequently connects, and they begin screen sharing.
    5. Machine2 opens a port intended for Machine1 to connect to.
    6. Machine1 tries to connect to the now open port on Machine2.

    If this connection is established:

    1. The connection to copilot's servers is severed.
    2. Data is instead transfered over the direct (P2P) connection between the two machines.

提交回复
热议问题