Lines Matching refs:recvlen
3299 Py_ssize_t recvlen, outlen; in sock_recv() local
3303 if (!PyArg_ParseTuple(args, "n|i:recv", &recvlen, &flags)) in sock_recv()
3306 if (recvlen < 0) { in sock_recv()
3313 buf = PyBytes_FromStringAndSize((char *) 0, recvlen); in sock_recv()
3318 outlen = sock_recv_guts(s, PyBytes_AS_STRING(buf), recvlen, flags); in sock_recv()
3325 if (outlen != recvlen) { in sock_recv()
3353 Py_ssize_t buflen, readlen, recvlen = 0; in sock_recv_into() local
3357 &pbuf, &recvlen, &flags)) in sock_recv_into()
3362 if (recvlen < 0) { in sock_recv_into()
3368 if (recvlen == 0) { in sock_recv_into()
3370 recvlen = buflen; in sock_recv_into()
3374 if (buflen < recvlen) { in sock_recv_into()
3382 readlen = sock_recv_guts(s, buf, recvlen, flags); in sock_recv_into()
3487 Py_ssize_t recvlen, outlen; in sock_recvfrom() local
3489 if (!PyArg_ParseTuple(args, "n|i:recvfrom", &recvlen, &flags)) in sock_recvfrom()
3492 if (recvlen < 0) { in sock_recvfrom()
3498 buf = PyBytes_FromStringAndSize((char *) 0, recvlen); in sock_recvfrom()
3503 recvlen, flags, &addr); in sock_recvfrom()
3508 if (outlen != recvlen) { in sock_recvfrom()
3540 Py_ssize_t readlen, buflen, recvlen = 0; in sock_recvfrom_into() local
3546 &recvlen, &flags)) in sock_recvfrom_into()
3551 if (recvlen < 0) { in sock_recvfrom_into()
3557 if (recvlen == 0) { in sock_recvfrom_into()
3559 recvlen = buflen; in sock_recvfrom_into()
3560 } else if (recvlen > buflen) { in sock_recvfrom_into()
3567 readlen = sock_recvfrom_guts(s, buf, recvlen, flags, &addr); in sock_recvfrom_into()