mirror of
https://github.com/impact-eintr/netstack.git
synced 2025-10-22 12:19:23 +08:00
tcp报文头结构可视化解析;优化IP udp报文的可视化解析
This commit is contained in:
14
tcpip/transport/tcp/connect.go
Normal file
14
tcpip/transport/tcp/connect.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package tcp
|
||||
|
||||
import (
|
||||
"log"
|
||||
"netstack/tcpip"
|
||||
)
|
||||
|
||||
// protocolMainLoop 是TCP协议的主循环。它在自己的goroutine中运行,负责握手、发送段和处理收到的段
|
||||
func (e *endpoint) protocolMainLoop(handshake bool) *tcpip.Error {
|
||||
for {
|
||||
log.Println("三次握手机制在这里实现")
|
||||
select {}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user