Lines Matching +full:getsockopt +full:- +full:timeouts
12 socket() -- create a new socket object
13 socketpair() -- create a pair of new socket objects [*]
14 fromfd() -- create a socket object from an open file descriptor [*]
15 send_fds() -- Send file descriptor to the socket.
16 recv_fds() -- Receive file descriptors from the socket.
17 fromshare() -- create a socket object from data received from socket.share() [*]
18 gethostname() -- return the current hostname
19 gethostbyname() -- map a hostname to its IP number
20 gethostbyaddr() -- map an IP number or hostname to DNS info
21 getservbyname() -- map a service name and a protocol name to a port number
22 getprotobyname() -- map a protocol name (e.g. 'tcp') to a number
23 ntohs(), ntohl() -- convert 16, 32 bit int from network to host byte order
24 htons(), htonl() -- convert 16, 32 bit int from host to network byte order
25 inet_aton() -- convert IP addr string (123.45.67.89) to 32-bit packed format
26 inet_ntoa() -- convert 32-bit packed format IP to string (123.45.67.89)
27 socket.getdefaulttimeout() -- get the default timeout value
28 socket.setdefaulttimeout() -- set the default timeout value
29 create_connection() -- connects to an address, with an optional timeout and
36 SocketType -- type object for socket objects
37 error -- exception raised for I/O errors
38 has_ipv6 -- boolean value indicating if IPv6 is supported
42 AF_INET, AF_UNIX -- socket domains (first argument to socket() call)
43 SOCK_STREAM, SOCK_DGRAM, SOCK_RAW -- socket types (second argument)
48 the setsockopt() and getsockopt() methods.
203 errorTab[11027] = "Invalid QoS provider-specific flowspec."
204 errorTab[11028] = "Invalid QoS provider-specific filterspec."
220 def __init__(self, family=-1, type=-1, proto=-1, fileno=None):
226 if family == -1:
228 if type == -1:
230 if proto == -1:
277 """dup() -> socket object
280 system resource. The new socket is non-inheritable.
288 """accept() -> (socket object, address info)
297 # socket had a (non-zero) timeout, force the new socket in blocking
298 # mode to override platform-specific socket flags inheritance.
305 """makefile(...) -> an I/O stream connected to the socket
325 buffering = -1
361 # Truncate to 1GiB to avoid OverflowError, see bpo-38319.
365 raise ValueError("non-blocking sockets are not supported")
384 blocksize = count - total_sent
398 # one being 'file' is not a regular mmap(2)-like
420 raise ValueError("non-blocking sockets are not supported")
431 blocksize = min(count - total_sent, blocksize)
467 """sendfile(file[, offset[, count]]) -> sent
469 Send a file until EOF is reached by using high-performance
482 Non-blocking sockets are not supported.
491 self._io_refs -= 1
506 """detach() -> file descriptor
517 """Read-only access to the address family for this socket.
523 """Read-only access to the socket type.
541 """ fromfd(fd, family, type[, proto]) -> socket object
553 """ send_fds(sock, buffers, fds[, flags[, address]]) -> integer
565 """ recv_fds(sock, bufsize, maxfds[, flags]) -> (data, list of file
578 len(cmsg_data) - (len(cmsg_data) % fds.itemsize)])
585 """ fromshare(info) -> socket object
665 socketpair.__doc__ = """socketpair([family[, type[, proto]]]) -> (socket object, socket object)
684 # - it wouldn't work under Windows (where you can't used read() and
686 # - it wouldn't work with socket timeouts (FileIO would ignore the
687 # timeout and consider the socket non-blocking)
705 the number of bytes read. If the socket is non-blocking and no bytes
708 If *b* is non-empty, a 0 return value indicates that the connection
730 non-blocking and no bytes could be written None is returned.
774 return -1
824 Convenience function. Connect to *address* (a 2-tuple ``(host,
890 bound to *address* (a 2-tuple (host, port)) and return the socket
923 …# See: https://learn.microsoft.com/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse
959 Translate the host/port argument into a sequence of 5-tuples that contain