Lines Matching defs:socket
22 even if there was data on the socket, because the protocol negotiation may have
24 between "no data" and "connection closed" (since the socket also appears ready
37 import socket
172 Read all data available already queued or on the socket,
177 socket, without blocking.
181 doing any socket I/O.
184 Reads all data in the cooked queue, without doing any socket
193 callback(telnet socket, command, option)
200 timeout=socket._GLOBAL_DEFAULT_TIMEOUT):
223 def open(self, host, port=0, timeout=socket._GLOBAL_DEFAULT_TIMEOUT):
238 self.sock = socket.create_connection((host, port), timeout)
277 """Return the socket object used internally."""
281 """Return the fileno() of the socket object used internally."""
285 """Write a string to the socket, doubling any IAC characters.
534 """Test whether data is available on the socket."""
672 port = socket.getservbyname(portstr, 'tcp')