MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / Disconnect

Method Disconnect

client/network.go:187–190  ·  view source on GitHub ↗

Disconnect 中断连接, 不释放资源

()

Source from the content-addressed store, hash-verified

185
186// Disconnect 中断连接, 不释放资源
187func (c *QQClient) Disconnect() {
188 c.Online.Store(false)
189 c.TCP.Close()
190}
191
192// sendAndWait 向服务器发送一个数据包, 并等待返回
193func (c *QQClient) sendAndWait(seq uint32, pkt []byte, params ...network.RequestParams) (any, error) {

Callers 6

ReleaseMethod · 0.95
ReloginMethod · 0.95
quickReconnectMethod · 0.95
unexpectedDisconnectMethod · 0.95
netLoopMethod · 0.95
decodeKickNTPacketFunction · 0.80

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected