File tree Expand file tree Collapse file tree 2 files changed +20
-12
lines changed Expand file tree Collapse file tree 2 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -45,23 +45,25 @@ sequenceDiagram
45
45
participant tc as TunnelClient
46
46
participant rs as RealServer
47
47
48
- tc->>ts: 1. 主动建立控制连接
49
- ts-->>tc: 2. 认证并响应
48
+ ts->>ts: 1. 启动ts,监听tcp控制端口
49
+ tc->>tc: 2. 启动tc
50
+ tc->>ts: 3. 与ts控制端口建立控制连接,并传入tcp数据端口
51
+ ts-->>tc: 4. ts认证通过后,监听tcp数据端口,并返回响应
50
52
loop 控制连接实现长连接
51
53
tc-->>ts: 发送心跳
52
- ts-->>tc:响应心跳
54
+ ts-->>tc: 响应心跳
53
55
end
54
56
55
- user->>ts: 3. 发起请求
56
- ts-->>tc: 4. 通过控制连接发送:有新的请求进来,需要你主动与我建立数据连接
57
- tc->>ts: 5. 主动建立数据连接
58
- ts-->>tc: 6. 通过数据连接转发用户请求
59
- tc->>rs: 7. 请求真实服务
60
- rs-->>tc: 8. 服务响应
61
- tc-->>ts: 9. 隧道响应
62
- ts-->user: 10. 返回最终结果
57
+ user->>ts: 5. 与数据端口建立连接,传输数据
58
+ ts-->>tc: 6. 通过控制连接发送:有新的请求进来,需要你主动与我建立数据连接
59
+ tc->>ts: 7. 主动建立数据连接
60
+ ts-->>tc: 8. 通过数据连接转发用户请求
61
+ tc->>rs: 9. 请求真实服务
62
+ rs-->>tc: 10. 服务响应
63
+ tc-->>ts: 11. 隧道响应
64
+ ts-->user: 12. 返回最终结果
65
+
63
66
64
-
65
67
66
68
```
67
69
Original file line number Diff line number Diff line change 40
40
<version >4.5.10</version >
41
41
<scope >provided</scope >
42
42
</dependency >
43
+ <dependency >
44
+ <groupId >com.google.protobuf</groupId >
45
+ <artifactId >protobuf-javalite</artifactId >
46
+ <version >4.30.2</version >
47
+ <scope >provided</scope >
48
+ </dependency >
43
49
</dependencies >
44
50
45
51
You can’t perform that action at this time.
0 commit comments