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

Method sendUniPacketAndWait

client/base.go:206–220  ·  view source on GitHub ↗
(cmd string, buf []byte)

Source from the content-addressed store, hash-verified

204}
205
206func (c *QQClient) sendUniPacketAndWait(cmd string, buf []byte) ([]byte, error) {
207 seq, packet, err := c.uniPacket(cmd, buf)
208 if err != nil {
209 return nil, err
210 }
211 pkt, err := c.sendAndWait(seq, packet)
212 if err != nil {
213 return nil, err
214 }
215 rsp, ok := pkt.([]byte)
216 if !ok {
217 return nil, errors.New("cannot parse response to bytes")
218 }
219 return rsp, nil
220}
221
222func (c *QQClient) webSsoRequest(host, webCmd, data string) (string, error) {
223 s := strings.Split(host, `.`)

Callers 15

GetGroupAlbumElemMethod · 0.95
SendRawMessageMethod · 0.95
sendOidbPacketAndWaitMethod · 0.95
webSsoRequestMethod · 0.95
doHeartbeatMethod · 0.95
ensureHighwayServersMethod · 0.95
TokenLoginMethod · 0.95
FetchQRCodeMethod · 0.95
GetQRCodeResultMethod · 0.95
keyExchangeMethod · 0.95
PasswordLoginMethod · 0.95
SubmitCaptchaMethod · 0.95

Calls 2

uniPacketMethod · 0.95
sendAndWaitMethod · 0.95

Tested by

no test coverage detected