Lines Matching defs:socket
9 import socket
256 sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM, 0)
267 if (sock.family != socket.AF_UNIX or
268 sock.type != socket.SOCK_STREAM):
302 sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
304 # Check for abstract socket. `str` and `bytes` paths are supported.
312 # Directory may have permissions only to create socket.
313 logger.error('Unable to check or remove stale UNIX socket '
335 if (sock.family != socket.AF_UNIX or
336 sock.type != socket.SOCK_STREAM):
411 "socket is not connected", errno.ENOTCONN)
630 # socket is closed) only works for sockets. On other platforms it
812 # Use a socket pair for stdin on AIX, since it does not
814 # socket (which we use in order to detect closing of the
816 stdin, stdin_w = socket.socketpair()