mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Issue #23618: Don't declare recvmsg/sendmsg helper functions on Windows
This commit is contained in:
parent
b7616621db
commit
35bee932e4
1 changed files with 6 additions and 7 deletions
|
@ -3109,6 +3109,9 @@ PyDoc_STRVAR(recvfrom_into_doc,
|
||||||
\n\
|
\n\
|
||||||
Like recv_into(buffer[, nbytes[, flags]]) but also return the sender's address info.");
|
Like recv_into(buffer[, nbytes[, flags]]) but also return the sender's address info.");
|
||||||
|
|
||||||
|
/* The sendmsg() and recvmsg[_into]() methods require a working
|
||||||
|
CMSG_LEN(). See the comment near get_CMSG_LEN(). */
|
||||||
|
#ifdef CMSG_LEN
|
||||||
struct sock_recvmsg {
|
struct sock_recvmsg {
|
||||||
struct msghdr *msg;
|
struct msghdr *msg;
|
||||||
int flags;
|
int flags;
|
||||||
|
@ -3124,10 +3127,6 @@ sock_recvmsg_impl(PySocketSockObject *s, void *data)
|
||||||
return (ctx->result >= 0);
|
return (ctx->result >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* The sendmsg() and recvmsg[_into]() methods require a working
|
|
||||||
CMSG_LEN(). See the comment near get_CMSG_LEN(). */
|
|
||||||
#ifdef CMSG_LEN
|
|
||||||
/*
|
/*
|
||||||
* Call recvmsg() with the supplied iovec structures, flags, and
|
* Call recvmsg() with the supplied iovec structures, flags, and
|
||||||
* ancillary data buffer size (controllen). Returns the tuple return
|
* ancillary data buffer size (controllen). Returns the tuple return
|
||||||
|
@ -3641,6 +3640,9 @@ Like send(data, flags) but allows specifying the destination address.\n\
|
||||||
For IP sockets, the address is a pair (hostaddr, port).");
|
For IP sockets, the address is a pair (hostaddr, port).");
|
||||||
|
|
||||||
|
|
||||||
|
/* The sendmsg() and recvmsg[_into]() methods require a working
|
||||||
|
CMSG_LEN(). See the comment near get_CMSG_LEN(). */
|
||||||
|
#ifdef CMSG_LEN
|
||||||
struct sock_sendmsg {
|
struct sock_sendmsg {
|
||||||
struct msghdr *msg;
|
struct msghdr *msg;
|
||||||
int flags;
|
int flags;
|
||||||
|
@ -3656,9 +3658,6 @@ sock_sendmsg_impl(PySocketSockObject *s, void *data)
|
||||||
return (ctx->result >= 0);
|
return (ctx->result >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The sendmsg() and recvmsg[_into]() methods require a working
|
|
||||||
CMSG_LEN(). See the comment near get_CMSG_LEN(). */
|
|
||||||
#ifdef CMSG_LEN
|
|
||||||
/* s.sendmsg(buffers[, ancdata[, flags[, address]]]) method */
|
/* s.sendmsg(buffers[, ancdata[, flags[, address]]]) method */
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue