/external/deqp/execserver/ |
xsTcpServer.hpp | 44 virtual ConnectionHandler* createHandler (de::Socket* socket, const de::SocketAddress& clientAddress) = DE_NULL; 52 de::Socket m_socket; 69 ConnectionHandler (TcpServer* server, de::Socket* socket) : m_server(server), m_socket(socket) {} 79 de::Socket* m_socket;
|
/external/jetty/src/java/org/eclipse/jetty/client/ |
SocketConnector.java | 23 import java.net.Socket; 52 Socket socket= destination.isSecure() local 56 socket.setSoTimeout(0); 57 socket.setTcpNoDelay(true); 60 socket.connect(address.toSocketAddress(), _httpClient.getConnectTimeout()); 62 final EndPoint endpoint=new SocketEndPoint(socket);
|
/external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/tcp/ |
SocketConnector.java | 41 import java.net.Socket; 48 * A straight forward socket-based connector implementation that 57 private Socket sock; 66 this.sock = new Socket(address, port); 96 Socket temp = sock; 101 throw new ConnectorException( "Error closing socket for:" + remoteAddress, e ); 123 // Socket is closed
|
/external/libvncserver/webclients/java-applet/ssl/ |
proxy.vnc | 18 Java socket applets and http proxies do not get along well. 20 Java security allows the applet to connect back via a socket to the 22 socket connections (only http and the like). So the socket connection 25 The applet is not allowed to open a socket connection to the proxy (since 28 This is indpendent of SSL but of course fails for that socket connection 41 For SSL connections, SSL is layered on top of this socket. However note
|
/external/lldb/include/lldb/Core/ |
ConnectionFileDescriptor.h | 14 #include <sys/socket.h> 62 // If the read file descriptor is a socket, then return 63 // the port number that is being used by the socket. 67 // If the write file descriptor is a socket, then return 68 // the port number that is being used by the socket. 104 eFDTypeSocket, // Socket requiring send/recv 105 eFDTypeSocketUDP // Unconnected UDP socket requiring sendto/recvfrom
|
/external/mdnsresponder/mDNSShared/ |
dnsextd.h | 27 #include <sys/socket.h> 126 int tcpsd; // listening TCP socket for dns requests 127 int udpsd; // listening UDP socket for dns requests 128 int tlssd; // listening TCP socket for private browsing 129 int llq_tcpsd; // listening TCP socket for llq service 130 int llq_udpsd; // listening UDP socket for llq service 148 int LLQEventNotifySock; // Unix domain socket pair - update handling thread writes to EventNotifySock, which wakes
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
DisconnectTest.java | 29 import java.net.Socket; 43 // The size of the socket buffers in bytes. 54 // required. These socket factories explicitly set the buffer sizes on sockets created. 64 protected void configureSocket(Socket socket) throws IOException { 65 socket.setSendBufferSize(SOCKET_BUFFER_SIZE); 66 socket.setReceiveBufferSize(SOCKET_BUFFER_SIZE);
|
ThreadInterruptTest.java | 31 import java.net.Socket; 45 // The size of the socket buffers in bytes. 56 // required. These socket factories explicitly set the buffer sizes on sockets created. 66 protected void configureSocket(Socket socket) throws IOException { 67 socket.setSendBufferSize(SOCKET_BUFFER_SIZE); 68 socket.setReceiveBufferSize(SOCKET_BUFFER_SIZE);
|
/frameworks/base/core/java/android/net/netlink/ |
NetlinkSocket.java | 40 * A small wrapper class to assist with AF_NETLINK socket operations. 55 mDescriptor = Os.socket( 81 * Wait indefinitely (or until underlying socket error) for a 90 * Wait up to |timeoutMs| (or until underlying socket error) for a 104 * Wait up to |timeoutMs| (or until underlying socket error) for a 134 * Send a message to a peer to which this socket has previously connected. 144 * Send a message to a peer to which this socket has previously connected,
|
/frameworks/native/opengl/libs/GLES_trace/src/ |
gltrace_transport.cpp | 22 #include <sys/socket.h> 35 int serverSocket = socket(AF_LOCAL, SOCK_STREAM, 0); 37 ALOGE("Error (%d) while creating socket. Check if app has network permissions.", 53 ALOGE("Failed to bind the server socket"); 59 ALOGE("Failed to listen on server socket"); 94 TCPStream::TCPStream(int socket) { 95 mSocket = socket;
|
/libcore/support/src/test/java/tests/http/ |
MockWebServer.java | 31 import java.net.Socket; 70 private final Set<Socket> openClientSockets 71 = Collections.newSetFromMap(new ConcurrentHashMap<Socket, Boolean>()); 197 logger.log(Level.WARNING, "MockWebServer server socket close failed", e); 199 for (Iterator<Socket> s = openClientSockets.iterator(); s.hasNext();) { 204 logger.log(Level.WARNING, "MockWebServer socket close failed", e); 216 Socket socket; 218 socket = serverSocket.accept(); 225 socket.close() [all...] |
/external/selinux/libsepol/tests/policies/test-expander/ |
small-base.conf | 24 class socket 87 # Define a common prefix for socket access vectors. 90 common socket 103 # socket-specific 201 class socket 202 inherits socket 205 inherits socket 213 inherits socket 216 inherits socket 240 inherits socket [all...] |
/external/selinux/libsepol/tests/policies/test-linker/ |
small-base.conf | 24 class socket 87 # Define a common prefix for socket access vectors. 90 common socket 103 # socket-specific 201 class socket 202 inherits socket 205 inherits socket 213 inherits socket 216 inherits socket 240 inherits socket [all...] |
/frameworks/base/core/java/android/bluetooth/ |
BluetoothServerSocket.java | 27 * A listening Bluetooth socket. 30 * {@link java.net.Socket} and {@link java.net.ServerSocket}. On the server 32 * socket. When a connection is accepted by the {@link BluetoothServerSocket}, 37 * <p>The most common type of Bluetooth socket is RFCOMM, which is the type 55 * operations and close the server socket. 77 * Construct a socket for incoming connections. 78 * @param type type of socket 95 * Construct a socket for incoming connections. 96 * @param type type of socket 117 * Construct a socket for incoming connections [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/ |
SapRilReceiver.java | 43 * Open the RIL-BT socket in rild. Will continuously try to open the BT socket until 44 * success. (Based on the approach used to open the rild socket in telephony) 45 * @return The socket handle 59 break; // Socket opened 74 + "' socket after " + retryCount 79 + "' socket; retrying after timeout"); 118 /* On Android you need to close the IOstreams using Socket.shutdown* 120 * stream from the socket, and when the socket is closed, the pendin [all...] |
/external/wpa_supplicant_8/src/l2_packet/ |
l2_packet_linux.c | 23 int fd; /* packet socket for EAPOL frames */ 33 /* For working around Linux packet socket behavior and regression. */ 150 * Close the workaround socket if the kernel version seems to be 151 * able to deliver packets through the packet socket before 156 "l2_packet_receive: Main packet socket for %s seems to have working RX - close workaround bridge socket", 238 l2->fd = socket(PF_PACKET, l2_hdr ? SOCK_RAW : SOCK_DGRAM, 241 wpa_printf(MSG_ERROR, "%s: socket(PF_PACKET): %s", 314 * The Linux packet socket behavior has changed over the years and there 319 * the packet socket bound to the real netdev and use socket filter t [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_poplib.py | 9 import socket namespace 111 def __init__(self, address, af=socket.AF_INET): 114 self.create_socket(af, socket.SOCK_STREAM) 119 self.host, self.port = self.socket.getsockname()[:2] 234 self.socket = ssl.wrap_socket(self.socket, certfile=CERTFILE, 246 self.socket.do_handshake() 254 except socket.error, err: 283 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_poplib.py | 9 import socket namespace 111 def __init__(self, address, af=socket.AF_INET): 114 self.create_socket(af, socket.SOCK_STREAM) 119 self.host, self.port = self.socket.getsockname()[:2] 234 self.socket = ssl.wrap_socket(self.socket, certfile=CERTFILE, 246 self.socket.do_handshake() 254 except socket.error, err: 283 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM [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...] |
/cts/tests/tests/security/src/android/security/cts/ |
OpenSSLEarlyCCSTest.java | 36 import java.net.Socket; 72 // tearDown() kills the sockets they may be using. To aid this behavior, all Socket and 82 private Socket mMitmServerSocket; 83 private Socket mMitmClientSocket; 241 SSLSocket socket = (SSLSocket) sslContext.getSocketFactory().createSocket(); local 242 setClientSocket(socket); 245 socket.connect(serverAddress); 246 Log.i(TAG, "Client connected to server from " + socket.getLocalSocketAddress()); 248 socket.getOutputStream().write("client".getBytes()); 249 socket.getOutputStream().flush() 288 SSLSocket socket = null; local [all...] |
OpenSSLHeartbleedTest.java | 32 import java.net.Socket; 72 // tearDown() kills the sockets they may be using. To aid this behavior, all Socket and 82 private Socket mMitmServerSocket; 83 private Socket mMitmClientSocket; 244 SSLSocket socket = (SSLSocket) sslContext.getSocketFactory().createSocket(); local 245 setClientSocket(socket); 248 socket.connect(serverAddress); 249 Log.i(TAG, "Client connected to server from " + socket.getLocalSocketAddress()); 251 socket.getOutputStream().write("client".getBytes()); 252 socket.getOutputStream().flush() 290 SSLSocket socket = null; local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
ServerSocketTest.java | 31 import java.net.Socket; 47 Socket sconn; 52 Socket cs; 64 cs = new Socket(InetAddress.getLocalHost().getHostName(), port); 382 // create servers socket, bind it and then validate basic state 397 assertTrue("Server socket not bound when it should be:", theSocket 402 Socket clientSocket = new Socket(); 406 Socket servSock = theSocket.accept(); 466 // create servers socket, bind it and then validate basic stat [all...] |
/external/conscrypt/src/main/java/org/conscrypt/ |
OpenSSLSocketImpl.java | 27 import java.net.Socket; 90 * returns before the handshake is complete. We can now start writing data to the socket. 129 private final Socket socket; field in class:OpenSSLSocketImpl 138 * The DNS hostname from reverse lookup on the socket. Should never be used 170 * getSoTimeout to delegate to the wrapped socket. 178 this.socket = this; 188 this.socket = this; 198 this.socket = this; 210 this.socket = this [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/ |
DebugEventSocketProxy.cs | 41 using Socket = System.Net.Sockets.Socket; 46 * A proxy debug event listener that forwards events over a socket to 48 * one event per line. ANTLRWorks listens on server socket with a 50 * be kept in sync. New events must be handled on both sides of socket. 57 protected Socket socket; field in class:Antlr.Runtime.Debug.DebugEventSocketProxy 99 socket = serverSocket.AcceptSocket(); 100 socket.NoDelay = true; 103 socket.Send(encoding.GetBytes("ANTLR " + DebugEventListenerConstants.ProtocolVersion + "\n")) [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/ |
DebugEventSocketProxy.cs | 40 using Socket = System.Net.Sockets.Socket; 45 * A proxy debug event listener that forwards events over a socket to 47 * one event per line. ANTLRWorks listens on server socket with a 49 * be kept in sync. New events must be handled on both sides of socket. 57 protected Socket socket; field in class:Antlr.Runtime.Debug.DebugEventSocketProxy 106 socket = serverSocket.AcceptSocket(); 107 socket.NoDelay = true; 110 socket.Send( encoding.GetBytes( "ANTLR " + DebugEventListenerConstants.ProtocolVersion + "\n" ) ) [all...] |