MCPcopy Index your code
hub / github.com/python/cpython / doRecvmsg

Method doRecvmsg

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

Source from the content-addressed store, hash-verified

3404 # Mixin to implement doRecvmsg() using recvmsg_into().
3405
3406 def doRecvmsg(self, sock, bufsize, *args):
3407 buf = bytearray(bufsize)
3408 result = sock.recvmsg_into([buf], *args)
3409 self.registerRecvmsgResult(result)
3410 self.assertGreaterEqual(result[0], 0)
3411 self.assertLessEqual(result[0], bufsize)
3412 return (bytes(buf[:result[0]]),) + result[1:]
3413
3414
3415class 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