MCPcopy Index your code
hub / github.com/RustPython/RustPython / doRecvmsg

Method doRecvmsg

Lib/test/test_socket.py:3303–3309  ·  view source on GitHub ↗
(self, sock, bufsize, *args)

Source from the content-addressed store, hash-verified

3301 # Mixin to implement doRecvmsg() using recvmsg_into().
3302
3303 def doRecvmsg(self, sock, bufsize, *args):
3304 buf = bytearray(bufsize)
3305 result = sock.recvmsg_into([buf], *args)
3306 self.registerRecvmsgResult(result)
3307 self.assertGreaterEqual(result[0], 0)
3308 self.assertLessEqual(result[0], bufsize)
3309 return (bytes(buf[:result[0]]),) + result[1:]
3310
3311
3312class SendrecvmsgDgramFlagsBase(SendrecvmsgBase):

Callers

nothing calls this directly

Calls 4

recvmsg_intoMethod · 0.80
assertGreaterEqualMethod · 0.80
assertLessEqualMethod · 0.80
registerRecvmsgResultMethod · 0.45

Tested by

no test coverage detected