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