/external/okhttp/src/test/java/com/squareup/okhttp/internal/mockspdyserver/ |
MockSpdyServer.java | 33 import java.net.Socket; 58 private final Set<Socket> openClientSockets = 59 Collections.newSetFromMap(new ConcurrentHashMap<Socket, Boolean>()); 128 logger.log(Level.WARNING, "MockWebServer server socket close failed", e); 130 for (Iterator<Socket> s = openClientSockets.iterator(); s.hasNext(); ) { 135 logger.log(Level.WARNING, "MockWebServer socket close failed", e); 149 Socket socket; local 151 socket = serverSocket.accept(); 155 openClientSockets.add(socket); 168 private Socket socket; field in class:MockSpdyServer.SocketHandler [all...] |
/libcore/luni/src/main/java/java/nio/ |
ServerSocketChannelImpl.java | 24 import java.net.Socket; 41 private final ServerSocketAdapter socket; field in class:ServerSocketChannelImpl 50 this.socket = new ServerSocketAdapter(this); 51 this.impl = socket.getImpl$(); 54 @Override public ServerSocket socket() { method in class:ServerSocketChannelImpl 55 return socket; 66 // Create an empty socket channel. This will be populated by ServerSocketAdapter.accept. 75 socket.implAccept(result); 86 end(result.socket().isConnected()); 88 return result.socket().isConnected() ? result : null [all...] |
/external/apache-harmony/x-net/src/test/impl/java.injected/javax/net/ssl/ |
DefaultSSLSocketFactoryTest.java | 23 import java.net.Socket; 37 * Class under test for Socket createSocket(String, int) 52 * Class under test for Socket createSocket(String, int, InetAddress, int) 66 * Class under test for Socket createSocket(InetAddress, int) 80 * Class under test for Socket createSocket(InetAddress, int, InetAddress, 112 * Class under test for Socket createSocket(Socket, String, int, boolean) 117 f.createSocket(new Socket(), "localhost", 1, true);
|
/external/mockwebserver/src/main/java/com/google/mockwebserver/ |
RecordedRequest.java | 19 import java.net.Socket; 38 int bodySize, byte[] body, int sequenceNumber, Socket socket) { 46 if (socket instanceof SSLSocket) { 47 SSLSocket sslSocket = (SSLSocket) socket;
|
/frameworks/base/core/tests/coretests/src/android/net/ |
SSLTest.java | 22 import java.net.Socket; 31 Socket ssl = SSLCertificateSocketFactory.getDefault().createSocket("www.fortify.net",443);
|
/libcore/luni/src/main/java/java/nio/channels/ |
SocketChannel.java | 21 import java.net.Socket; 29 * abstraction of stream connecting socket. {@code socket()} returns the related 30 * {@link Socket} instance which can handle the socket. 32 * A socket channel is open but not connected when created by {@code open()}. 38 * blocked or not; {@code isConnected()} indicates if the socket is finally 52 * Socket channels are thread-safe, no more than one thread can read or write at 71 * Creates an open and unconnected socket channel. 85 * Creates a socket channel and connects it to a socket address 134 public abstract Socket socket(); method in class:SocketChannel [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
ServerSocketTest.java | 29 import java.net.Socket; 50 Socket sconn; 55 Socket cs; 67 cs = new Socket(InetAddress.getLocalHost().getHostName(), port); 384 // create servers socket, bind it and then validate basic state 399 assertTrue("Server socket not bound when it should be:", theSocket 404 Socket clientSocket = new Socket(); 408 Socket servSock = theSocket.accept(); 468 // create servers socket, bind it and then validate basic stat [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
socket.h | 35 #include <sys/socket.h> 49 // Reuse the POSIX socket api errors. Note this depends on 143 // General interface for the socket implementations of various networks. The 145 class Socket { 147 virtual ~Socket() {} 149 // Returns the address to which the socket is bound. If the socket is not 153 // Returns the address to which the socket is connected. If the socket is 164 virtual Socket *Accept(SocketAddress *paddr) = 0 [all...] |
socketstream.cc | 32 SocketStream::SocketStream(AsyncSocket* socket) : socket_(NULL) { 33 Attach(socket); 40 void SocketStream::Attach(AsyncSocket* socket) { 43 socket_ = socket; 53 AsyncSocket* socket = socket_; local 61 return socket; 67 case Socket::CS_CONNECTED: 69 case Socket::CS_CONNECTING: 71 case Socket::CS_CLOSED: 117 void SocketStream::OnConnectEvent(AsyncSocket* socket) { [all...] |
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/ |
CaptureLoader.java | 37 import java.net.Socket; 42 Socket socket = null; local 48 socket = new Socket(); 49 socket.connect(new InetSocketAddress("127.0.0.1", 52 out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())); 53 in = new DataInputStream(new BufferedInputStream(socket.getInputStream())); 80 if (socket != null) { 81 socket.close() 130 Socket socket = null; local [all...] |
/cts/tests/tests/os/src/android/os/cts/ |
ParcelFileDescriptorTest.java | 37 import java.net.Socket; 69 Socket sSocket = ss.accept(); 82 Socket socket; local 83 socket = new Socket(InetAddress.getLocalHost(), PORT); 84 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); 88 socket.close(); 150 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(new Socket()); 201 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(new Socket()); [all...] |
/external/apache-http/src/org/apache/http/conn/ssl/ |
SSLSocketFactory.java | 49 import java.net.Socket; 59 * Layered socket factory for TLS/SSL connections, based on JSSE. 70 * certificates. The client secure socket will reject the connection during 85 * pair. The client secure socket will use the private key to authenticate 233 * Creates the default SSL socket factory. 268 public Socket createSocket() 277 public Socket connectSocket( 278 final Socket sock, 324 // close the socket before re-throwing the exception 334 * Checks whether a socket connection is secure [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
SSLSocketFactory.java | 55 import java.net.Socket; 65 * Layered socket factory for TLS/SSL connections, based on JSSE. 76 * certificates. The client secure socket will reject the connection during 91 * pair. The client secure socket will use the private key to authenticate 237 * Creates the default SSL socket factory. 272 public Socket createSocket() 281 public Socket connectSocket( 282 final Socket sock, 328 // close the socket before re-throwing the exception 338 * Checks whether a socket connection is secure [all...] |
/external/v8/src/ |
debug-agent.cc | 51 // Allow this socket to reuse port even if still in TIME_WAIT. 54 // First bind the socket to the requested port. 63 PrintF("Failed to open socket on port %d, " 75 Socket* client = server_->Accept(); 108 void DebuggerAgent::CreateSession(Socket* client) { 226 // Shutdown the socket to end the blocking receive. 234 SmartArrayPointer<char> DebuggerAgentUtil::ReceiveMessage(const Socket* conn) { 251 PrintF("Error %d\n", Socket::LastError()); 313 PrintF("Error %d\n", Socket::LastError()); 322 bool DebuggerAgentUtil::SendConnectMessage(const Socket* conn [all...] |
d8-debug.h | 80 i::Socket* conn() { return conn_; } 83 i::Socket* conn_; // Connection to debugger agent in debugged V8.
|
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
OpenSSLSocketImplWrapper.java | 22 import java.net.Socket; 27 * This class wraps the SSL functionality over an existing connected socket. 31 private Socket socket; field in class:OpenSSLSocketImplWrapper 33 protected OpenSSLSocketImplWrapper(Socket socket, String host, int port, 35 super(socket, host, port, autoClose, sslParameters); 36 if (!socket.isConnected()) { 37 throw new SocketException("Socket is not connected."); 39 this.socket = socket [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/internal/net/www/protocol/http/ |
HttpURLConnectionTest.java | 30 import java.net.Socket; 137 Socket client = null; 238 Socket socket = serverSocket.accept(); 239 socket.setSoTimeout(5000); 241 int num = socket.getInputStream().read(buff); 242 socket 248 num = socket.getInputStream().read(buff); 251 socket = serverSocket.accept(); 252 socket.setSoTimeout(5000) [all...] |
/external/okhttp/src/test/java/com/squareup/okhttp/internal/spdy/ |
SpdyServer.java | 29 import java.net.Socket; 55 Socket socket = serverSocket.accept(); local 57 socket = doSsl(socket); 59 new SpdyConnection.Builder(false, socket).handler(this).build(); 63 private Socket doSsl(Socket socket) throws IOException { 65 (SSLSocket) sslSocketFactory.createSocket(socket, socket.getInetAddress().getHostAddress() [all...] |
/external/webkit/Source/WebKit/android/wds/ |
ConnectionAndroid.cpp | 44 bool Socket::open() { 45 m_fd = socket(PF_INET, SOCK_STREAM, 0);
|
/libcore/luni/src/main/java/java/net/ |
ServerSocket.java | 24 * This class represents a server-side socket that waits for incoming client 26 * appropriate reply. The actual tasks that a server socket must accomplish are 54 * @throws IOException if an error occurs while creating the socket. 66 * @throws IOException if an error occurs while creating the socket. 77 * @throws IOException if an error occurs while creating the socket. 89 * @throws IOException if an error occurs while creating the socket. 112 * This method returns a socket object representing the just opened 115 * @return the connection representing socket. 119 public Socket accept() throws IOException { 122 throw new SocketException("Socket is not bound") [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
InterruptedStreamTest.java | 28 import java.net.Socket; 47 private Socket[] sockets; 108 * Returns a pair of connected sockets backed by NIO socket channels. 110 private Socket[] newSocketChannelPair() throws IOException { 112 serverSocketChannel.socket().bind(new InetSocketAddress(0)); 114 clientSocketChannel.connect(serverSocketChannel.socket().getLocalSocketAddress()); 117 return new Socket[] { clientSocketChannel.socket(), server.socket() };
|
/external/chromium/net/socket/ |
ssl_server_socket_nss.h | 20 #include "net/socket/ssl_server_socket.h" 27 // |socket| - A socket that is already connected. 31 // |ssl_config| - Options for SSL socket. 33 SSLServerSocketNSS(Socket* transport_socket, 77 PRFileDesc* socket, 80 static void HandshakeCallback(PRFileDesc* socket, void* arg); 112 // Socket for sending and receiving data. 113 scoped_ptr<Socket> transport_socket_; 115 // Options for the SSL socket [all...] |
/external/chromium/third_party/libjingle/source/talk/p2p/base/ |
relayport.h | 53 typedef std::pair<talk_base::Socket::Option, int> OptionValue; 76 virtual int SetOption(talk_base::Socket::Option opt, int value);
|
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/channel/ |
LocalAcceptThread.java | 10 import java.net.Socket; 62 Socket s = null; 88 /* Simply close the local socket and wait for the next incoming connection */
|
/libcore/benchmarks/src/benchmarks/regression/ |
SSLSocketBenchmark.java | 25 import java.net.Socket; 96 Socket s = sf.createSocket(webSite.host, webSite.port);
|