Lines Matching defs:data
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\
152 -- receive data and sender\'s address (into a buffer)\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\
546 ancillary data). POSIX requires socklen_t to hold at least
828 until the socket received data otherwise.
840 int (*sock_func) (PySocketSockObject *s, void *data),
841 void *data,
920 res = sock_func(s, data);
951 reading, but the data then discarded by the OS because of a
969 int (*func) (PySocketSockObject *s, void *data),
970 void *data)
972 return sock_call_ex(s, writing, func, data, 0, NULL, s->sock_timeout);
1616 idna_cleanup(struct maybe_idna *data)
1618 Py_CLEAR(data->obj);
1622 idna_converter(PyObject *obj, struct maybe_idna *data)
1627 idna_cleanup(data);
1630 data->obj = NULL;
1633 data->buf = PyBytes_AsString(obj);
1637 data->buf = PyByteArray_AsString(obj);
1645 data->buf = PyUnicode_DATA(obj);
1655 data->obj = obj2;
1656 data->buf = PyBytes_AS_STRING(obj2);
1665 if (strlen(data->buf) != len) {
1666 Py_CLEAR(data->obj);
2588 necessary before *and* after the data. */
2661 data is entirely contained in the buffer, set *data_len to the
2662 length of the associated data and return 0. If only part of the
2663 associated data is contained in the buffer but cmsgh is otherwise
2700 sock_accept_impl(PySocketSockObject *s, void *data)
2702 struct sock_accept *ctx = data;
3224 sock_connect_impl(PySocketSockObject *s, void* Py_UNUSED(data))
3493 sock_recv_impl(PySocketSockObject *s, void *data)
3495 struct sock_recv *ctx = data;
3582 "recv(buffersize[, flags]) -> data\n\
3585 argument, see the Unix manual. When no data is available, block until\n\
3587 the remote end is closed and all data is read, return the empty string.");
3645 A version of recv() that stores its data into a buffer rather than creating\n\
3662 sock_recvfrom_impl(PySocketSockObject *s, void *data)
3664 struct sock_recvfrom *ctx = data;
3773 "recvfrom(buffersize[, flags]) -> (data, address info)\n\
3845 sock_recvmsg_impl(PySocketSockObject *s, void *data)
3847 struct sock_recvmsg *ctx = data;
3855 * ancillary data buffer size (controllen). Returns the tuple return
3891 "invalid ancillary data buffer length");
3915 /* Make list of (level, type, data) tuples from control messages. */
3918 /* Check for empty ancillary data as old CMSG_FIRSTHDR()
3929 "ancillary data", 1) == -1)
3997 makeval_recvmsg(ssize_t received, void *data)
3999 PyObject **buf = data;
4039 "recvmsg(bufsize[, ancbufsize[, flags]]) -> (data, ancdata, msg_flags, address)\n\
4041 Receive normal data (up to bufsize bytes) and ancillary data from the\n\
4043 internal buffer used to receive the ancillary data; it defaults to 0,\n\
4044 meaning that no ancillary data will be received. Appropriate buffer\n\
4045 sizes for ancillary data can be calculated using CMSG_SPACE() or\n\
4050 The return value is a 4-tuple: (data, ancdata, msg_flags, address).\n\
4051 The data item is a bytes object holding the non-ancillary data\n\
4053 (cmsg_level, cmsg_type, cmsg_data) representing the ancillary data\n\
4056 and cmsg_data is a bytes object holding the associated data. The\n\
4069 makeval_recvmsg_into(ssize_t received, void *data)
4131 Receive normal data and ancillary data from the socket, scattering the\n\
4132 non-ancillary data into a series of buffers. The buffers argument\n\
4135 of the non-ancillary data until it has all been written or there are\n\
4137 the internal buffer used to receive the ancillary data; it defaults to\n\
4138 0, meaning that no ancillary data will be received. Appropriate\n\
4139 buffer sizes for ancillary data can be calculated using CMSG_SPACE()\n\
4145 The nbytes item is the total number of bytes of non-ancillary data\n\
4148 data (control messages) received: cmsg_level and cmsg_type are\n\
4151 data. The msg_flags item is the bitwise OR of various flags\n\
4171 sock_send_impl(PySocketSockObject *s, void *data)
4173 struct sock_send *ctx = data;
4185 /* s.send(data [,flags]) method */
4214 "send(data[, flags]) -> count\n\
4216 Send a data string to the socket. For the optional flags\n\
4218 sent; this may be less than len(data) if the network is busy.");
4221 /* s.sendall(data [,flags]) method */
4292 "sendall(data[, flags])\n\
4294 Send a data string to the socket. For the optional flags\n\
4296 until all data is sent. If an error occurs, it's impossible\n\
4297 to tell how much data has been sent.");
4311 sock_sendto_impl(PySocketSockObject *s, void *data)
4313 struct sock_sendto *ctx = data;
4327 /* s.sendto(data, [flags,] sockaddr) method */
4389 "sendto(data[, flags], address) -> count\n\
4391 Like send(data, flags) but allows specifying the destination address.\n\
4463 sock_sendmsg_impl(PySocketSockObject *s, void *data)
4465 struct sock_sendmsg *ctx = data;
4483 Py_buffer data;
4552 "(iiy*):[sendmsg() ancillary data items]",
4555 &cmsgs[ncmsgbufs].data))
4557 bufsize = cmsgs[ncmsgbufs++].data.len;
4564 PyErr_SetString(PyExc_OSError, "ancillary data item too large");
4569 PyErr_SetString(PyExc_OSError, "too much ancillary data");
4575 /* Construct ancillary data block from control message info. */
4597 size_t msg_len, data_len = cmsgs[i].data.len;
4621 "ancillary data does not fit in calculated "
4627 memcpy(CMSG_DATA(cmsgh), cmsgs[i].data.buf, data_len);
4647 PyBuffer_Release(&cmsgs[i].data);
4661 Send normal and ancillary data to the socket, gathering the\n\
4662 non-ancillary data from a series of buffers and concatenating it into\n\
4664 data as an iterable of bytes-like objects (e.g. bytes objects).\n\
4665 The ancdata argument specifies the ancillary data (control messages)\n\
4669 is a bytes-like object holding the associated data. The flags\n\
4673 data sent.");
4799 /* set length of associated data for AEAD */
4838 Set operation mode, IV and length of associated data for an AF_ALG\n\
5756 struct hostent_data data;
5782 memset((void *) &data, '\0', sizeof(data));
5783 result = gethostbyname_r(name, &hp_allocated, &data);
5831 struct hostent_data data;
5885 memset((void *) &data, '\0', sizeof(data));
5886 result = gethostbyaddr_r(ap, al, af, &hp_allocated, &data);
6867 they access the not-msan-tracked if_name string data. */
6978 data item with associated data of the given length. This value can\n\
6980 item of ancillary data, but RFC 3542 requires portable applications to\n\
7009 data item with associated data of the given length, along with any\n\
7011 is the sum of the CMSG_SPACE() values for their associated data\n\