/external/chromium_org/net/socket/ |
stream_socket.h | 9 #include "net/socket/next_proto.h" 10 #include "net/socket/socket.h" 18 class NET_EXPORT_PRIVATE StreamSocket : public Socket { 28 // The socket's Read and Write methods may not be called until Connect 31 // It is valid to call Connect on an already connected socket, in which case 38 // Called to disconnect a socket. Does nothing if the socket is already 42 // If IO (Connect, Read, or Write) is pending when the socket is 57 // ERR_SOCKET_NOT_CONNECTED will be returned if the socket is not connected [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
firewallsocketserver.h | 61 // Settings to control whether CreateSocket or Socket::Listen succeed. 78 virtual Socket* CreateSocket(int type); 79 virtual Socket* CreateSocket(int family, int type); 94 Socket * WrapSocket(Socket * sock, int type);
|
asyncpacketsocket.h | 33 #include "talk/base/socket.h" 39 // received by socket. 46 int64 timestamp; // Receive time after socket delivers the data. 74 // socket is not bound yet (GetState() returns STATE_BINDING). 77 // Returns remote address. Returns zeroes if this is not a client TCP socket. 85 // Close the socket. 88 // Returns current state of the socket. 92 virtual int GetOption(Socket::Option opt, int* value) = 0; 93 virtual int SetOption(Socket::Option opt, int value) = 0; 106 // Emitted when the socket is currently able to send [all...] |
macsocketserver.h | 26 virtual Socket* CreateSocket(int type) { return NULL; } 27 virtual Socket* CreateSocket(int family, int type) { return NULL; } 35 void RegisterSocket(MacAsyncSocket* socket); 36 void UnregisterSocket(MacAsyncSocket* socket); 55 // Core Foundation implementation of the socket server. While idle it 56 // will run the current CF run loop. When the socket server has work 81 // waiting for events. When the socket server has work to do, it will 104 // idle. When the socket server has work to do, it will post an event
|
physicalsocketserver.h | 39 typedef int SOCKET; 66 virtual SOCKET GetSocket() = 0; 74 // A socket server that provides the real sockets of the underlying OS. 81 virtual Socket* CreateSocket(int type); 82 virtual Socket* CreateSocket(int family, int type); 88 AsyncSocket* WrapSocket(SOCKET s);
|
sslsocketfactory.h | 74 virtual Socket* CreateSocket(int type); 75 virtual Socket* CreateSocket(int family, int type);
|
testclient.h | 52 // Creates a client that will send and receive with the given socket and 54 explicit TestClient(AsyncPacketSocket* socket); 60 // Checks that the socket moves to the specified connect state. 63 // Checks that the socket is connected to the remote side. 68 // Sends using the clients socket. 71 // Sends using the clients socket to the given destination. 87 int SetOption(Socket::Option opt, int value); 94 Socket::ConnState GetState(); 95 // Slot for packets read on the socket. 96 void OnPacket(AsyncPacketSocket* socket, const char* buf, size_t len [all...] |
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...] |
/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...] |
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
ProxyServer.java | 33 import java.net.Socket; 60 private Socket connection; 62 private ProxyConnection(Socket connection) { 114 Socket server = null; 121 server = new Socket(inetSocketAddress.getHostName(), 125 server = new Socket(host, port); 142 server = new Socket(host, port); 177 private void sendLine(Socket socket, String line) throws IOException { 178 OutputStream os = socket.getOutputStream() 202 Socket socket = serverSocket.accept(); local [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/chromium_org/chrome/browser/extensions/api/socket/ |
socket_api_unittest.cc | 9 #include "chrome/browser/extensions/api/socket/socket.h" 10 #include "chrome/browser/extensions/api/socket/socket_api.h" 27 return ApiResourceManager<Socket>::CreateApiResourceManagerForTest( 36 ApiResourceManager<Socket>::GetFactoryInstance()->SetTestingFactoryAndUse(
|
socket_api.cc | 5 #include "chrome/browser/extensions/api/socket/socket_api.h" 13 #include "chrome/browser/extensions/api/socket/socket.h" 14 #include "chrome/browser/extensions/api/socket/tcp_socket.h" 15 #include "chrome/browser/extensions/api/socket/udp_socket.h" 39 const char kSocketNotFoundError[] = "Socket not found"; 44 "TCP socket does not support bind. For TCP server please use listen."; 46 "Only UDP socket supports multicast."; 68 new SocketResourceManager<Socket>()).Pass(); 71 int SocketAsyncApiFunction::AddSocket(Socket* socket) 158 Socket* socket = NULL; local 257 Socket* socket = GetSocket(socket_id_); local 274 Socket* socket = GetSocket(socket_id_); local 316 Socket* socket = GetSocket(params_->socket_id); local 352 Socket* socket = GetSocket(params_->socket_id); local 385 Socket* socket = GetSocket(params_->socket_id); local 431 Socket* socket = GetSocket(socket_id_); local 462 Socket* socket = GetSocket(params_->socket_id); local 575 Socket* socket = GetSocket(params_->socket_id); local 599 Socket* socket = GetSocket(params_->socket_id); local 618 Socket* socket = GetSocket(params_->socket_id); local 714 Socket* socket = GetSocket(params_->socket_id); local 758 Socket* socket = GetSocket(params_->socket_id); local 801 Socket* socket = GetSocket(params_->socket_id); local 835 Socket* socket = GetSocket(params_->socket_id); local 867 Socket* socket = GetSocket(params_->socket_id); local [all...] |
/external/chromium_org/remoting/protocol/ |
transport.h | 12 // net::Socket or net::SocketStream which provides access to the data 15 // initialization of the connection socket that can be used later to 16 // send and receive data. The socket is passed to the callback 18 // during the whole lifetime of the connection socket. Later deletion 19 // of the connection socket causes teardown of the corresponding 38 class Socket; 137 typedef base::Callback<void(scoped_ptr<net::Socket>)> ConnectedCallback;
|
/external/chromium_org/third_party/libjingle/source/talk/p2p/base/ |
portproxy.h | 74 virtual int SetOption(talk_base::Socket::Option opt, int value); 75 virtual int GetOption(talk_base::Socket::Option opt, int* value);
|
/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...] |
/external/chromium_org/tools/android/forwarder2/ |
device_controller.cc | 18 #include "tools/android/forwarder2/socket.h" 28 scoped_ptr<Socket> host_socket(new Socket()); 30 PLOG(ERROR) << "Could not BindAndListen DeviceController socket on port " 34 LOG(INFO) << "Listening on Unix Domain Socket " << adb_unix_socket; 48 DeviceController::DeviceController(scoped_ptr<Socket> host_socket, 65 scoped_ptr<Socket> socket(new Socket); 66 if (!host_socket_->Accept(socket.get())) [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...] |
/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 240 * Creates the default SSL socket factory. 275 public Socket createSocket() 284 public Socket connectSocket( 285 final Socket sock, 331 // close the socket before re-throwing the exception 341 * 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. 273 public Socket createSocket() 283 public Socket connectSocket( 284 final Socket sock, 330 // close the socket before re-throwing the exception 340 * 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...] |