#2 p2p mode

クローズ
1 年間 前j3tracey によって開かれました · 2 コメント
Justin Tracey1 年間 前 にコメントしました

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 Tracey1 年間 前 にコメントしました
オーナー

Fixed via a77581b348

Fixed via a77581b348
j3tracey 1 年間 前 に閉じられました
Justin Tracey1 年間 前 にコメントしました
オーナー

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 参加者
読み込み中…
キャンセル
保存
まだコンテンツがありません