更新时延计算

This commit is contained in:
nnbcccscdscdsc
2026-03-23 21:30:37 +08:00
parent 2dd33bf73e
commit 32e77df476
6 changed files with 178 additions and 35 deletions

View File

@@ -195,6 +195,7 @@ func (c *Client) nextMessageID() uint64 {
return atomic.AddUint64(&c.nextID, 1)
}
// 根据提供的选项创建 TCP 连接,并进行必要的配置,例如绑定本地 IP 或网卡。成功建立连接后,返回一个封装了该连接的 TCPConn 实例。
func dialServerWithOptions(serverAddr string, options clientOptions) (net.Conn, error) {
dialer, err := buildDialer(options)
if err != nil {