package
Version:
v0.0.0-...-95a312b
Opens a new window with list of versions in this module.
Published: Mar 16, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
首先是监听端口,当有请求到来时开启一个goroutine去处理该链接请求
type TCPHandler interface {
Handle(net.Conn)
}
TCP长连接的处理只需要实现Handle即可
Source Files
¶
Click to show internal directories.
Click to hide internal directories.