#2 p2p mode

Затворено
отворено пре 1 година од j3tracey · 2 коментара
Justin Tracey коментирира пре 1 година

Clients currently require a server to send messages. We want to simulate Ricochet/Cwtch-style messengers, so we need the ability to send p2p messages too. The server is extremely minimal, it mostly just forwards messages, so clients almost could operate without one, but we'll need p2p mode to make two changes:

  • Clients currently start connections to the server with their ID, so that backlog messages can be sent to them. This isn't forwarded to the recipient clients, so p2p mode would need to either remove this, or expect it.
  • Conversations with a central server save bandwidth in group messages by "encrypting with a single shared key" (encryption is a NOP for us, of course), and only sending the message to the server once, which the server then forwards to all recipients. Clients operating in p2p mode don't have this luxury, so will have to be configured to open multiple sockets for each recipient in a group conversation, and send the message over each one.
Clients currently require a server to send messages. We want to simulate Ricochet/Cwtch-style messengers, so we need the ability to send p2p messages too. The server is extremely minimal, it mostly just forwards messages, so clients *almost* could operate without one, but we'll need p2p mode to make two changes: - Clients currently start connections to the server with their ID, so that backlog messages can be sent to them. This isn't forwarded to the recipient clients, so p2p mode would need to either remove this, or expect it. - Conversations with a central server save bandwidth in group messages by "encrypting with a single shared key" (encryption is a NOP for us, of course), and only sending the message to the server once, which the server then forwards to all recipients. Clients operating in p2p mode don't have this luxury, so will have to be configured to open multiple sockets for each recipient in a group conversation, and send the message over each one.
Justin Tracey коментирира пре 1 година
Власник

Fixed via a77581b348

Fixed via a77581b348
j3tracey затворено пре 1 година
Justin Tracey коментирира пре 1 година
Власник

I forgot to add the actual peer code in that commit, added it in 1d900f96b3

I forgot to add the actual peer code in that commit, added it in 1d900f96b3
Пријавите се да се прикључе у овом разговору.
Нема лабеле
Нема фазе
Нема одговорних
1 учесника
Учитавање...
Откажи
Сачувај
Још нема садржаја.