Lines Matching refs:recvlen
3539 Py_ssize_t recvlen, outlen; in sock_recv() local
3543 if (!PyArg_ParseTuple(args, "n|i:recv", &recvlen, &flags)) in sock_recv()
3546 if (recvlen < 0) { in sock_recv()
3553 buf = PyBytes_FromStringAndSize((char *) 0, recvlen); in sock_recv()
3558 outlen = sock_recv_guts(s, PyBytes_AS_STRING(buf), recvlen, flags); in sock_recv()
3565 if (outlen != recvlen) { in sock_recv()
3593 Py_ssize_t buflen, readlen, recvlen = 0; in sock_recv_into() local
3597 &pbuf, &recvlen, &flags)) in sock_recv_into()
3602 if (recvlen < 0) { in sock_recv_into()
3608 if (recvlen == 0) { in sock_recv_into()
3610 recvlen = buflen; in sock_recv_into()
3614 if (buflen < recvlen) { in sock_recv_into()
3622 readlen = sock_recv_guts(s, buf, recvlen, flags); in sock_recv_into()
3727 Py_ssize_t recvlen, outlen; in sock_recvfrom() local
3729 if (!PyArg_ParseTuple(args, "n|i:recvfrom", &recvlen, &flags)) in sock_recvfrom()
3732 if (recvlen < 0) { in sock_recvfrom()
3738 buf = PyBytes_FromStringAndSize((char *) 0, recvlen); in sock_recvfrom()
3743 recvlen, flags, &addr); in sock_recvfrom()
3748 if (outlen != recvlen) { in sock_recvfrom()
3780 Py_ssize_t readlen, buflen, recvlen = 0; in sock_recvfrom_into() local
3786 &recvlen, &flags)) in sock_recvfrom_into()
3791 if (recvlen < 0) { in sock_recvfrom_into()
3797 if (recvlen == 0) { in sock_recvfrom_into()
3799 recvlen = buflen; in sock_recvfrom_into()
3800 } else if (recvlen > buflen) { in sock_recvfrom_into()
3807 readlen = sock_recvfrom_guts(s, buf, recvlen, flags, &addr); in sock_recvfrom_into()