Lines Matching refs:recvlen
2509 int recvlen, flags = 0; local
2513 if (!PyArg_ParseTuple(args, "i|i:recv", &recvlen, &flags))
2516 if (recvlen < 0) {
2523 buf = PyString_FromStringAndSize((char *) 0, recvlen);
2528 outlen = sock_recv_guts(s, PyString_AS_STRING(buf), recvlen, flags);
2535 if (outlen != recvlen) {
2562 int recvlen = 0, flags = 0; local
2569 &buf, &recvlen, &flags))
2574 if (recvlen < 0) {
2579 if (recvlen == 0) {
2581 recvlen = buflen;
2585 if (buflen < recvlen) {
2592 readlen = sock_recv_guts(s, buf.buf, recvlen, flags);
2693 int recvlen, flags = 0; local
2696 if (!PyArg_ParseTuple(args, "i|i:recvfrom", &recvlen, &flags))
2699 if (recvlen < 0) {
2705 buf = PyString_FromStringAndSize((char *) 0, recvlen);
2710 recvlen, flags, &addr);
2715 if (outlen != recvlen) {
2744 int recvlen = 0, flags = 0; local
2753 &recvlen, &flags))
2757 if (recvlen < 0) {
2762 if (recvlen == 0) {
2764 recvlen = buflen;
2765 } else if (recvlen > buflen) {
2771 readlen = sock_recvfrom_guts(s, buf.buf, recvlen, flags, &addr);