Lines Matching defs:socket
15 import socket
50 if hasattr(socket, 'AF_UNIX'):
92 if not hasattr(socket, family):
350 a socket handle (Windows).
407 # to Nagle's algorithm on a TCP socket.
435 This is a wrapper for a bound socket which is 'listening' for
456 Accept a connection on the bound socket or named pipe of `self`.
470 Close the bound socket or named pipe of `self`.
520 s1, s2 = socket.socketpair()
580 Representation of a socket which is bound to an address and listening
583 self._socket = socket.socket(getattr(socket, family))
587 self._socket.setsockopt(socket.SOL_SOCKET,
588 socket.SO_REUSEADDR, 1)
600 # Linux abstract socket namespaces do not need to be explicitly unlinked
624 Return a connection object connected to the socket given by `address`
627 with socket.socket( getattr(socket, family) ) as s:
940 # Make connection and socket objects shareable if possible
946 with socket.fromfd(handle, socket.AF_INET, socket.SOCK_STREAM) as s: