Lines Matching defs:socket
40 import socket
41 from socket import _GLOBAL_DEFAULT_TIMEOUT
46 # Magic number from <socket.h>
82 passed, meaning that no timeout will be set on any ftp socket(s).
84 socket operations for this instance.
143 - timeout: the timeout to set against the ftp socket(s)
144 - source_address: a 2-tuple (host, port) for the socket to bind
154 raise ValueError('Non-blocking socket (timeout=0) is not supported')
158 self.sock = socket.create_connection((self.host, self.port), self.timeout,
301 if self.af == socket.AF_INET:
303 if self.af == socket.AF_INET6:
312 '''Create a new socket and send a PORT command for it.'''
313 sock = socket.create_server(("", 0), family=self.af, backlog=1)
316 if self.af == socket.AF_INET:
326 if self.af == socket.AF_INET:
342 transfer command. Either way, return the socket for the
354 conn = socket.create_connection((host, port), self.timeout,
392 """Like ntransfercmd() but returns only the socket."""
429 socket at one time. [default: 8192]