Lines Matching +full:translate +full:- +full:errno
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() -- Recieve 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)
58 import errno
60 errno = None variable
61 EBADF = getattr(errno, 'EBADF', 9)
62 EAGAIN = getattr(errno, 'EAGAIN', 11)
63 EWOULDBLOCK = getattr(errno, 'EWOULDBLOCK', 11)
152 errorTab[10062] = "Cannot translate name."
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:
276 """dup() -> socket object
279 system resource. The new socket is non-inheritable.
287 """accept() -> (socket object, address info)
296 # socket had a (non-zero) timeout, force the new socket in blocking
297 # mode to override platform-specific socket flags inheritance.
304 """makefile(...) -> an I/O stream connected to the socket
324 buffering = -1
360 # Truncate to 1GiB to avoid OverflowError, see bpo-38319.
364 raise ValueError("non-blocking sockets are not supported")
383 blocksize = count - total_sent
397 # one being 'file' is not a regular mmap(2)-like
419 raise ValueError("non-blocking sockets are not supported")
430 blocksize = min(count - total_sent, blocksize)
466 """sendfile(file[, offset[, count]]) -> sent
468 Send a file until EOF is reached by using high-performance
481 Non-blocking sockets are not supported.
490 self._io_refs -= 1
505 """detach() -> file descriptor
516 """Read-only access to the address family for this socket.
522 """Read-only access to the socket type.
540 """ fromfd(fd, family, type[, proto]) -> socket object
552 """ send_fds(sock, buffers, fds[, flags[, address]]) -> integer
564 """ recv_fds(sock, bufsize, maxfds[, flags]) -> (data, list of file
577 len(cmsg_data) - (len(cmsg_data) % fds.itemsize)])
584 """ fromshare(info) -> socket object
595 """socketpair([family[, type[, proto]]]) -> (socket object, socket object)
653 socketpair.__doc__ = """socketpair([family[, type[, proto]]]) -> (socket object, socket object)
672 # - it wouldn't work under Windows (where you can't used read() and
674 # - it wouldn't work with socket timeouts (FileIO would ignore the
675 # timeout and consider the socket non-blocking)
693 the number of bytes read. If the socket is non-blocking and no bytes
696 If *b* is non-empty, a 0 return value indicates that the connection
710 if e.errno in _blocking_errnos:
718 non-blocking and no bytes could be written None is returned.
726 if e.errno in _blocking_errnos:
762 return -1
812 Convenience function. Connect to *address* (a 2-tuple ``(host,
872 bound to *address* (a 2-tuple (host, port)) and return the socket
905 # See: msdn2.microsoft.com/en-us/library/ms740621(VS.85).aspx
927 raise error(err.errno, msg) from None
941 Translate the host/port argument into a sequence of 5-tuples that contain
952 # We override this function since we want to translate the numeric family