/external/chromium_org/third_party/libjingle/source/talk/p2p/base/ |
turnserver.h | 66 // The core TURN server class. Give it a socket to listen on via 89 void AddInternalSocket(talk_base::AsyncPacketSocket* socket, 91 // Starts listening for the connections on this socket. When someone tries 92 // to connect, the connection will be accepted and a new internal socket 94 void AddInternalServerSocket(talk_base::AsyncSocket* socket, 107 talk_base::AsyncPacketSocket* socket); 109 talk_base::AsyncPacketSocket* socket() { return socket_; } function in class:cricket::TurnServer::Connection 125 void OnInternalPacket(talk_base::AsyncPacketSocket* socket, const char* data, 129 void OnNewInternalConnection(talk_base::AsyncSocket* socket); 131 // Accept connections on this server socket [all...] |
/external/chromium_org/third_party/tlslite/scripts/ |
tls.py | 6 import socket namespace 48 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 265 connection.sock.close() #Close the socket without a close_notify! 277 if hasattr(socket, "timeout"): 278 timeoutEx = socket.timeout 280 timeoutEx = socket.error 306 if hasattr(socket, "timeout") [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/backends/chrome/ |
tracing_backend.py | 8 import socket namespace 220 while self._conn.socket: 222 data = self._conn.socket.recv() 240 except (socket.error, websocket.WebSocketException) as e:
|
/external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/tcp/ |
NioEndpoint.java | 57 private SocketChannel socket; field in class:NioEndpoint 62 public NioEndpoint( SelectorKernel kernel, long id, SocketChannel socket ) 65 this.socket = socket; 92 // Note: even though we may be disconnected from the socket.isConnected() 97 throw new KernelException( "Error closing endpoint for socket:" + socket, e ); 108 return String.valueOf(socket.socket().getRemoteSocketAddress()); 113 return socket.isConnected() [all...] |
/external/qemu/proxy/ |
proxy_int.h | 62 /* action a proxy connection when select() returns certain events for its socket */ 69 int socket; member in struct:ProxyConnection 97 int socket, 108 * close the corresponding socket unless the 123 /* try to send data from the connection's buffer to a socket. 127 * returns DATA_ERROR for a socket disconnection or error 141 /* try to read 'wanted' bytes into conn->str from a socket 145 * returns DATA_ERROR in case of socket disconnection or error
|
/external/qemu/slirp/ |
socket.h | 17 * Our socket structure 20 struct socket { struct 21 struct socket *so_next,*so_prev; /* For a linked list of sockets */ 23 int s; /* The actual socket */ 38 u_int8_t so_emu; /* Is the socket emulated? */ 40 u_char so_type; /* Type of socket, UDP or TCP */ 44 u_int so_expire; /* When the socket will expire */ 46 int so_queued; /* Number of packets queued from this socket */ 58 * Socket state bits. (peer means the host on the Internet, 63 #define SS_ISFCONNECTING 0x002 /* Socket is connecting to peer (non-blocking connect()'s) * [all...] |
/external/qemu/slirp-android/ |
socket.h | 17 * Our socket structure 20 struct socket { struct 21 struct socket *so_next,*so_prev; /* For a linked list of sockets */ 23 int s; /* The actual socket */ 39 u_int8_t so_emu; /* Is the socket emulated? */ 41 u_char so_type; /* Type of socket, UDP or TCP */ 45 u_int so_expire; /* When the socket will expire */ 47 int so_queued; /* Number of packets queued from this socket */ 59 * Socket state bits. (peer means the host on the Internet, 64 #define SS_ISFCONNECTING 0x002 /* Socket is connecting to peer (non-blocking connect()'s) * [all...] |
/frameworks/base/core/java/android/net/http/ |
CertificateChainValidator.java | 71 * @param sslSocket The secure connection socket 78 // get a valid SSLSession, close the socket if we fail 197 SSLSocket socket, String errorMessage, String defaultErrorMessage) 200 socket, errorMessage != null ? errorMessage : defaultErrorMessage); 203 private void closeSocketThrowException(SSLSocket socket, 209 if (socket != null) { 210 SSLSession session = socket.getSession(); 215 socket.close();
|
/libcore/crypto/src/main/java/org/conscrypt/ |
OpenSSLServerSocketImpl.java | 21 import java.net.Socket; 117 * Enables/disables the TLS Channel ID extension for this server socket. 124 * Checks whether the TLS Channel ID extension is enabled for this server socket. 174 public Socket accept() throws IOException { 180 OpenSSLSocketImpl socket = new OpenSSLSocketImpl(sslParameters, local 183 socket.setChannelIdEnabled(channelIdEnabled); 184 implAccept(socket); 185 return socket;
|
/libcore/luni/src/main/java/libcore/io/ |
BlockGuardOs.java | 41 throw new ErrnoException("socket", EINVAL, e); 49 throw new ErrnoException("socket", EINVAL, e); 62 // If the fd is a socket with SO_LINGER set, we might block indefinitely. 70 // We're called via Socket.close (which doesn't ask for us to be called), so we 71 // must not throw here, because Socket.close must not throw if asked to close an 72 // already-closed socket. Also, the passed-in FileDescriptor isn't necessarily 73 // a socket at all. 180 @Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { method in class:BlockGuardOs 181 return tagSocket(os.socket(domain, type, protocol));
|
/pdk/apps/CameraITS/pymodules/its/ |
device.py | 23 import socket namespace 41 sock: The open socket. 56 # Seconds timeout on each socket operation. 69 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
asynchat.py | 49 import socket namespace 102 # grab some more data from the socket, 111 except socket.error, why: 236 except socket.error:
|
mimetools.py | 138 import socket namespace 140 hostid = socket.gethostbyname(socket.gethostname()) 141 except socket.gaierror:
|
poplib.py | 16 import re, socket namespace 80 timeout=socket._GLOBAL_DEFAULT_TIMEOUT): 83 self.sock = socket.create_connection((host, port), timeout) 338 for res in socket.getaddrinfo(self.host, self.port, 0, socket.SOCK_STREAM): 341 self.sock = socket.socket(af, socktype, proto) 343 except socket.error, msg: 350 raise socket.error, msg
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/email/ |
utils.py | 28 import socket namespace 200 idhost = socket.getfqdn()
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/multiprocessing/ |
reduction.py | 2 # Module to allow connection and socket objects to be transferred 40 import socket namespace 178 # Register `socket.socket` with `ForkingPickler` 182 s = socket.fromfd(fd, family, type_, proto) 183 if s.__class__ is not socket.socket: 184 s = socket.socket(_sock=s) 197 ForkingPickler.register(socket.socket, reduce_socket [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_urllib2net.py | 7 import socket namespace 80 # underlying socket 82 # delve deep into response to fetch socket._socketobject 85 self.assertTrue(abused_fileobject.__class__ is socket._fileobject) 89 self.assertTrue(fileobject.__class__ is socket._fileobject) 136 ## if socket.gethostname() == 'bitdiddle': 138 ## elif socket.gethostname() == 'bitdiddle.concentric.net': 226 if isinstance(err[0], socket.timeout): 236 except socket.timeout: 255 self.assertTrue(socket.getdefaulttimeout() is None [all...] |
test_urllibnet.py | 6 import socket namespace 33 socket.setdefaulttimeout(self.TIMEOUT) 36 socket.setdefaulttimeout(None) 118 # On Windows, socket handles are not file descriptors; this 136 socket.gethostbyname(bogus_domain) 137 except socket.gaierror:
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
asynchat.py | 49 import socket namespace 102 # grab some more data from the socket, 111 except socket.error, why: 236 except socket.error:
|
mimetools.py | 138 import socket namespace 140 hostid = socket.gethostbyname(socket.gethostname()) 141 except socket.gaierror:
|
poplib.py | 16 import re, socket namespace 80 timeout=socket._GLOBAL_DEFAULT_TIMEOUT): 83 self.sock = socket.create_connection((host, port), timeout) 338 for res in socket.getaddrinfo(self.host, self.port, 0, socket.SOCK_STREAM): 341 self.sock = socket.socket(af, socktype, proto) 343 except socket.error, msg: 350 raise socket.error, msg
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/email/ |
utils.py | 28 import socket namespace 200 idhost = socket.getfqdn()
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/multiprocessing/ |
reduction.py | 2 # Module to allow connection and socket objects to be transferred 40 import socket namespace 178 # Register `socket.socket` with `ForkingPickler` 182 s = socket.fromfd(fd, family, type_, proto) 183 if s.__class__ is not socket.socket: 184 s = socket.socket(_sock=s) 197 ForkingPickler.register(socket.socket, reduce_socket [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_urllib2net.py | 7 import socket namespace 80 # underlying socket 82 # delve deep into response to fetch socket._socketobject 85 self.assertTrue(abused_fileobject.__class__ is socket._fileobject) 89 self.assertTrue(fileobject.__class__ is socket._fileobject) 136 ## if socket.gethostname() == 'bitdiddle': 138 ## elif socket.gethostname() == 'bitdiddle.concentric.net': 226 if isinstance(err[0], socket.timeout): 236 except socket.timeout: 255 self.assertTrue(socket.getdefaulttimeout() is None [all...] |
test_urllibnet.py | 6 import socket namespace 33 socket.setdefaulttimeout(self.TIMEOUT) 36 socket.setdefaulttimeout(None) 118 # On Windows, socket handles are not file descriptors; this 136 socket.gethostbyname(bogus_domain) 137 except socket.gaierror:
|