Skip to content

Commit

Permalink
feat: update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenKS12138 committed Jun 20, 2021
1 parent 3513a6a commit 42c0f9a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ chatroom,使用 Diffie-Hellman 协商密钥,AES 进行加密的,使用 pro

# 实现原理

## 心跳包

每个 peer 定时发送心跳包,并接受心跳包维护自己的 uidsList

![heartbeat](https://github.com/ChenKS12138/chatroom/raw/main/image/heartbeat.png)

## 建立 Hub

建立 Broadcast Hub,抹平 Tcp Server 和 Tcp Client 的差异,统一所有实例为 peer,每个 peer 的行为都是对称的

![broadcast-hub](https://github.com/ChenKS12138/chatroom/raw/main/image/broadcast-hub.png)

## 心跳包

每个 peer 定时发送心跳包,并接受心跳包维护自己的 uidsList

![heartbeat](https://github.com/ChenKS12138/chatroom/raw/main/image/heartbeat.png)

## 密钥协商

基于 Diffie-Hellman 实现的密钥协商
Expand Down

0 comments on commit 42c0f9a

Please sign in to comment.