/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_telnetlib.py | 1 import socket namespace 18 to the socket. 38 except socket.timeout: 47 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 64 self.assertTrue(socket.getdefaulttimeout() is None) 65 socket.setdefaulttimeout(30) 69 socket.setdefaulttimeout(None [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
webbrowser.py | 408 import socket namespace 417 s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 422 except socket.error:
|
/prebuilts/python/linux-x86/2.7.5/bin/ |
smtpd.py | 77 import socket namespace 120 self.__fqdn = socket.getfqdn() 123 except socket.error, err: 282 self.create_socket(socket.AF_INET, socket.SOCK_STREAM) 309 socket connection to our smtp port. 373 except (socket.error, smtplib.SMTPException), e:
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
BaseHTTPServer.py | 75 import socket # For gethostbyaddr() namespace 109 host, port = self.socket.getsockname()[:2] 110 self.server_name = socket.getfqdn(host) 330 except socket.timeout, e: 498 return socket.getfqdn(host) 597 sa = httpd.socket.getsockname()
|
SocketServer.py | 1 """Generic socket server classes. 5 For socket-based servers: 10 - others, e.g. AF_DECNET are conceivable (see <socket.h> 11 - socket type: 15 For request-based servers (including socket-based): 132 import socket namespace 146 if hasattr(socket, "AF_UNIX"): 200 - socket 232 # connecting to the socket to wake this up instead of 269 # Support people who used socket.settimeout() to escap [all...] |
nntplib.py | 33 import socket namespace 112 self.sock = socket.create_connection((host, port)) 596 """Process a QUIT command and close the socket. Returns:
|
smtpd.py | 77 import socket namespace 120 self.__fqdn = socket.getfqdn() 123 except socket.error, err: 282 self.create_socket(socket.AF_INET, socket.SOCK_STREAM) 309 socket connection to our smtp port. 373 except (socket.error, smtplib.SMTPException), e:
|
webbrowser.py | 408 import socket namespace 417 s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 422 except socket.error:
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/idlelib/ |
run.py | 5 import socket namespace 45 # the socket) and the main thread (which runs user code), plus global 126 except socket.error, err: 127 print>>sys.__stderr__,"IDLE Subprocess: socket error: "\ 151 "Socket Error: %s" % err.args[1])
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/multiprocessing/ |
connection.py | 39 import socket namespace 64 if hasattr(socket, 'AF_UNIX'): 121 This is a wrapper for a bound socket which is 'listening' for 141 Accept a connection on the bound socket or named pipe of `self`. 153 Close the bound socket or named pipe of `self`. 188 s1, s2 = socket.socketpair() 249 Representation of a socket which is bound to an address and listening 252 self._socket = socket.socket(getattr(socket, family) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_asynchat.py | 3 import asyncore, asynchat, socket, time namespace 24 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 67 self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
|
test_httplib.py | 5 import socket namespace 38 raise socket.error(errno.EPIPE, "gotcha") 181 # when no length is present, the socket should be gracefully closed when 195 # content-length is delivered, the socket is gracefully closed 362 self.assertRaises(socket.error, 421 self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 454 self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM [all...] |
test_mmap.py | 4 import os, re, itertools, socket, sys namespace 642 # socket file descriptors are valid, but out of range 645 s = socket.socket()
|
test_socketserver.py | 10 import socket namespace 29 HAVE_UNIX_SOCKETS = hasattr(socket, "AF_UNIX") 71 """Test all socket servers.""" 90 if proto == socket.AF_INET: 97 dir = '\socket' 100 # AF_UNIX socket names on OS/2 require a specific prefix 128 self.assertEqual(server.server_address, server.socket.getsockname()) 161 s = socket.socket(proto, socket.SOCK_STREAM [all...] |
test_telnetlib.py | 1 import socket namespace 18 to the socket. 38 except socket.timeout: 47 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 64 self.assertTrue(socket.getdefaulttimeout() is None) 65 socket.setdefaulttimeout(30) 69 socket.setdefaulttimeout(None [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
SocketChannelTest.java | 28 import java.net.Socket; 157 assertNull(channel1.socket().getLocalSocketAddress()); 159 channel1.socket().bind(null); 161 InetSocketAddress localAddress = (InetSocketAddress) channel1.socket().getLocalSocketAddress(); 167 assertNull(channel1.socket().getLocalSocketAddress()); 171 channel1.socket().bind(localAddr1); 181 channel1.socket().bind(null); 190 portPickingChannel.socket().bind(null); 191 InetSocketAddress address = (InetSocketAddress) portPickingChannel.socket().getLocalSocketAddress(); 198 // Allow the socket to bind to a port we know is already in use 437 Socket socket = channel1.socket(); local 447 Socket socket = channel1.socket(); local 457 Socket socket = channel1.socket(); local 466 Socket socket = channel1.socket(); local 474 Socket socket = channel1.socket(); local 483 Socket socket = channel1.socket(); local 493 Socket socket = channel1.socket(); local 3243 Socket socket = null; local 3703 Socket socket = channel1.socket(); local 3745 public Socket socket() { method in class:SocketChannelTest.MockSocketChannel [all...] |
/external/conscrypt/src/main/java/org/conscrypt/ |
OpenSSLSocketImpl.java | 27 import java.net.Socket; 89 * returns before the handshake is complete. We can now start writing data to the socket. 128 private final Socket socket; field in class:OpenSSLSocketImpl 137 * The DNS hostname from reverse lookup on the socket. Should never be used 169 * getSoTimeout to delegate to the wrapped socket. 177 this.socket = this; 187 this.socket = this; 197 this.socket = this; 209 this.socket = this [all...] |
/external/smack/src/org/jivesoftware/smack/ |
XMPPConnection.java | 49 import java.net.Socket; 60 * Creates a socket connection to a XMPP server. This is the default connection 69 * The socket which is used for this connection. 71 Socket socket; field in class:XMPPConnection 431 // It is *important* that this is done before socket.close()! 434 socket.close(); 446 // socket.close(). But just in case do it explicitly. 455 // socket.close(). But just in case do it explicitly. 462 // Make sure that the socket is really close [all...] |
/frameworks/base/core/java/android/os/ |
Process.java | 373 final LocalSocket socket; field in class:Process.ZygoteState 380 private ZygoteState(LocalSocket socket, DataInputStream inputStream, 382 this.socket = socket; 411 Log.i("Zygote", "Process: zygote socket opened, supported ABIS: " + abiListString); 423 socket.close(); 502 /** retry interval for opening a zygote socket */ 706 * Tries to open socket to Zygote process if not already open. If [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
MulticastSocketTest.java | 671 fail("No socket exception when we set then network interface with NULL"); 705 // Set up the receiving socket and join the group. 836 MulticastSocket socket = new MulticastSocket(0); local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
SSLSessionTest.java | 474 * Implements a test SSL socket server. It waits for a connection on a given 475 * port, requests client authentication (if specified), reads from the socket, 476 * and writes to the socket. 564 * Implements a test SSL socket client. It opens a connection to localhost on 565 * a given port, writes to the socket, and reads from the socket. 595 SSLSocket socket = (SSLSocket)clientSslContext.getSocketFactory().createSocket(); local 597 socket.connect(serverSocket.getLocalSocketAddress()); 598 OutputStream ostream = socket.getOutputStream(); 602 InputStream istream = socket.getInputStream() [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
SocketTest.java | 27 import java.net.Socket; 41 Socket s = new Socket(); 43 // Closing a closed socket does nothing. 53 Socket s = new Socket(); 61 // Now close the socket... 74 new Socket("localhost", 80); 93 ssc.socket().bind(listenAddr, 0); 94 ServerSocket ss = ssc.socket(); 244 Socket socket = new Socket("localhost", server.port); local 266 Socket socket = new Socket("localhost", server.port); local 297 Socket socket = serverSocket.accept(); local 306 Socket socket = new Socket("localhost", serverSocket.getLocalPort()); local [all...] |
/cts/apps/CtsVerifier/assets/scripts/ |
execute_power_tests.py | 23 import socket namespace 190 # forwarding that port to a local socket on the device via adb 193 dummysocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 210 link = socket.socket(socket.AF_INET, socket.SOCK_STREAM [all...] |
/development/samples/training/NsdChat/src/com/example/android/nsdchat/ |
ChatConnection.java | 32 import java.net.Socket; 45 private Socket mSocket; 97 private synchronized void setSocket(Socket socket) { 99 if (socket == null) { 100 Log.d(TAG, "Setting a null socket."); 112 mSocket = socket; 115 private Socket getSocket() { 133 Log.e(TAG, "Error when closing server socket."); 199 setSocket(new Socket(mAddress, PORT)) 265 Socket socket = getSocket(); local [all...] |
/external/chromium-trace/trace-viewer/examples/stream_server/ |
standalone.py | 121 import socket namespace 269 return socket._fileobject(self._connection, mode, bufsize) 282 socket object to self.socket before server_bind and server_activate, 315 (socket.AF_INET6, socket.SOCK_STREAM, '', '', ''), 316 (socket.AF_INET, socket.SOCK_STREAM, '', '', '')] 318 addrinfo_array = socket.getaddrinfo(self.server_name, 320 socket.AF_UNSPEC [all...] |