Lines Matching defs:flags

36 - socket.getaddrinfo(host, port [, family, type, proto, flags])
38 - socket.getnameinfo(sockaddr, flags) --> (host, port)
148 recv(buflen[, flags]) -- receive data\n\
149 recv_into(buffer[, nbytes[, flags]]) -- receive data (into a buffer)\n\
150 recvfrom(buflen[, flags]) -- receive data and sender\'s address\n\
151 recvfrom_into(buffer[, nbytes, [, flags])\n\
153 sendall(data[, flags]) -- send all data\n\
154 send(data[, flags]) -- send data, may not send all of it\n\
155 sendto(data[, flags], addr) -- send data to a given address\n\
315 /* remove some flags on older version Windows during run-time.
990 /* It's possible to pass SOCK_NONBLOCK and SOCK_CLOEXEC bit flags
3488 int flags;
3500 ctx->result = recv(s->sock_fd, ctx->cbuf, (int)ctx->len, ctx->flags);
3502 ctx->result = recv(s->sock_fd, ctx->cbuf, ctx->len, ctx->flags);
3518 sock_recv_guts(PySocketSockObject *s, char* cbuf, Py_ssize_t len, int flags)
3533 ctx.flags = flags;
3541 /* s.recv(nbytes [,flags]) method */
3547 int flags = 0;
3550 if (!PyArg_ParseTuple(args, "n|i:recv", &recvlen, &flags))
3565 outlen = sock_recv_guts(s, PyBytes_AS_STRING(buf), recvlen, flags);
3582 "recv(buffersize[, flags]) -> data\n\
3584 Receive up to buffersize bytes from the socket. For the optional flags\n\
3590 /* s.recv_into(buffer, [nbytes [,flags]]) method */
3595 static char *kwlist[] = {"buffer", "nbytes", "flags", 0};
3597 int flags = 0;
3604 &pbuf, &recvlen, &flags))
3629 readlen = sock_recv_guts(s, buf, recvlen, flags);
3643 "recv_into(buffer, [nbytes[, flags]]) -> nbytes_read\n\
3649 See recv() for documentation about the flags.");
3654 int flags;
3671 ctx->result = recvfrom(s->sock_fd, ctx->cbuf, (int)ctx->len, ctx->flags,
3674 ctx->result = recvfrom(s->sock_fd, ctx->cbuf, ctx->len, ctx->flags,
3693 sock_recvfrom_guts(PySocketSockObject *s, char* cbuf, Py_ssize_t len, int flags,
3712 ctx.flags = flags;
3726 /* s.recvfrom(nbytes [,flags]) method */
3734 int flags = 0;
3737 if (!PyArg_ParseTuple(args, "n|i:recvfrom", &recvlen, &flags))
3751 recvlen, flags, &addr);
3773 "recvfrom(buffersize[, flags]) -> (data, address info)\n\
3775 Like recv(buffersize, flags) but also return the sender's address info.");
3778 /* s.recvfrom_into(buffer[, nbytes [,flags]]) method */
3783 static char *kwlist[] = {"buffer", "nbytes", "flags", 0};
3785 int flags = 0;
3794 &recvlen, &flags))
3815 readlen = sock_recvfrom_guts(s, buf, recvlen, flags, &addr);
3830 "recvfrom_into(buffer[, nbytes[, flags]]) -> (nbytes, address info)\n\
3832 Like recv_into(buffer[, nbytes[, flags]]) but also return the sender's address info.");
3840 int flags;
3849 ctx->result = recvmsg(s->sock_fd, ctx->msg, ctx->flags);
3854 * Call recvmsg() with the supplied iovec structures, flags, and
3865 int flags, Py_ssize_t controllen,
3911 ctx.flags = flags;
4007 /* s.recvmsg(bufsize[, ancbufsize[, flags]]) method */
4013 int flags = 0;
4017 if (!PyArg_ParseTuple(args, "n|ni:recvmsg", &bufsize, &ancbufsize, &flags))
4032 retval = sock_recvmsg_guts(s, &iov, 1, flags, ancbufsize,
4039 "recvmsg(bufsize[, ancbufsize[, flags]]) -> (data, ancdata, msg_flags, address)\n\
4047 truncated or discarded. The flags argument defaults to 0 and has the\n\
4057 msg_flags item is the bitwise OR of various flags indicating\n\
4074 /* s.recvmsg_into(buffers[, ancbufsize[, flags]]) method */
4080 int flags = 0;
4087 &buffers_arg, &ancbufsize, &flags))
4117 retval = sock_recvmsg_guts(s, iovs, nitems, flags, ancbufsize,
4129 "recvmsg_into(buffers[, ancbufsize[, flags]]) -> (nbytes, ancdata, msg_flags, address)\n\
4141 truncated or discarded. The flags argument defaults to 0 and has the\n\
4151 data. The msg_flags item is the bitwise OR of various flags\n\
4166 int flags;
4178 ctx->result = send(s->sock_fd, ctx->buf, (int)ctx->len, ctx->flags);
4180 ctx->result = send(s->sock_fd, ctx->buf, ctx->len, ctx->flags);
4185 /* s.send(data [,flags]) method */
4190 int flags = 0;
4194 if (!PyArg_ParseTuple(args, "y*|i:send", &pbuf, &flags))
4203 ctx.flags = flags;
4214 "send(data[, flags]) -> count\n\
4216 Send a data string to the socket. For the optional flags\n\
4221 /* s.sendall(data [,flags]) method */
4228 int flags = 0;
4237 if (!PyArg_ParseTuple(args, "y*|i:sendall", &pbuf, &flags))
4266 ctx.flags = flags;
4292 "sendall(data[, flags])\n\
4294 Send a data string to the socket. For the optional flags\n\
4304 int flags;
4318 ctx->result = sendto(s->sock_fd, ctx->buf, (int)ctx->len, ctx->flags,
4321 ctx->result = sendto(s->sock_fd, ctx->buf, ctx->len, ctx->flags,
4327 /* s.sendto(data, [flags,] sockaddr) method */
4336 int addrlen, flags;
4339 flags = 0;
4349 &pbuf, &flags, &addro)) {
4376 ctx.flags = flags;
4389 "sendto(data[, flags], address) -> count\n\
4391 Like send(data, flags) but allows specifying the destination address.\n\
4401 int flags;
4467 ctx->result = sendmsg(s->sock_fd, ctx->msg, ctx->flags);
4471 /* s.sendmsg(buffers[, ancdata[, flags[, address]]]) method */
4487 int addrlen, flags = 0;
4493 &data_arg, &cmsg_arg, &flags, &addr_arg)) {
4638 ctx.flags = flags;
4659 "sendmsg(buffers[, ancdata[, flags[, address]]]) -> count\n\
4669 is a bytes-like object holding the associated data. The flags\n\
4695 int flags = 0;
4703 static char *keywords[] = {"msg", "op", "iv", "assoclen", "flags", 0};
4715 &PyLong_Type, &assoclenobj, &flags)) {
4815 ctx.flags = flags;
4836 "sendmsg_afalg([msg], *, op[, iv[, assoclen[, flags=MSG_MORE]]])\n\
6538 "flags", 0};
6545 int family, socktype, protocol, flags;
6550 socktype = protocol = flags = 0;
6554 &protocol, &flags)) {
6591 if ((flags & AI_NUMERICSERV) && (pptr == NULL || (pptr[0] == '0' && pptr[1] == 0))) {
6609 hints.ai_flags = flags;
6655 "getaddrinfo(host, port [, family, type, proto, flags])\n\
6662 /* Python interface to getnameinfo(sa, flags). */
6669 int flags;
6679 flags = flowinfo = scope_id = 0;
6680 if (!PyArg_ParseTuple(args, "Oi:getnameinfo", &sa, &flags))
6743 hbuf, sizeof(hbuf), pbuf, sizeof(pbuf), flags);
6762 "getnameinfo(sockaddr, flags) --> (host, port)\n\
7889 /* BCM flags */
8560 /* remove some flags on older version Windows during run-time */