HomeSort by relevance Sort by last modified time
    Searched refs:Socket (Results 1 - 25 of 403) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/luni/src/main/java/javax/net/
DefaultSocketFactory.java 22 import java.net.Socket;
34 public Socket createSocket() throws IOException {
35 return new Socket();
39 public Socket createSocket(String host, int port) throws IOException, UnknownHostException {
40 return new Socket(host, port);
44 public Socket createSocket(String host, int port, InetAddress localHost, int localPort)
46 return new Socket(host, port, localHost, localPort);
50 public Socket createSocket(InetAddress host, int port) throws IOException {
51 return new Socket(host, port);
55 public Socket createSocket(InetAddress address, int port, InetAddress localAddress
    [all...]
SocketFactory.java 22 import java.net.Socket;
28 * to create specific socket types with additional socket-level functionality.
35 * Gets the default socket factory of the system which can be used to create
38 * @return the system default socket factory.
54 * Creates a new socket which is not connected to any remote host. This
58 * @return the created unconnected socket.
60 * if an error occurs while creating a new socket.
62 public Socket createSocket() throws IOException {
68 * Creates a new socket which is connected to the remote host specified b
    [all...]
  /external/chromium_org/tools/android/forwarder2/
forwarders_manager.h 16 class Socket;
27 void CreateAndStartNewForwarder(scoped_ptr<Socket> socket1,
28 scoped_ptr<Socket> socket2);
31 void CreateNewForwarderOnInternalThread(scoped_ptr<Socket> socket1,
32 scoped_ptr<Socket> socket2);
device_listener.h 18 #include "tools/android/forwarder2/socket.h"
50 static scoped_ptr<DeviceListener> Create(scoped_ptr<Socket> host_socket,
58 void SetAdbDataSocket(scoped_ptr<Socket> adb_data_socket);
63 DeviceListener(scoped_ptr<Socket> listener_socket,
64 scoped_ptr<Socket> host_socket,
75 scoped_ptr<Socket> adb_data_socket);
88 // The local device listener socket for accepting connections from the local
90 const scoped_ptr<Socket> listener_socket_;
91 // The listener socket for sending control commands.
92 const scoped_ptr<Socket> host_socket_
    [all...]
command.h 12 class Socket;
36 bool ReadCommand(Socket* socket,
40 // Helper function to read the command from the |socket| and return true if the
42 bool ReceivedCommand(command::Type command, Socket* socket);
44 bool SendCommand(command::Type command, int port, Socket* socket);
forwarder.h 15 class Socket;
21 Forwarder(scoped_ptr<Socket> socket1, scoped_ptr<Socket> socket2);
37 const scoped_ptr<Socket> socket1_;
38 const scoped_ptr<Socket> socket2_;
  /external/chromium_org/third_party/webrtc/base/
socketfactory.h 14 #include "webrtc/base/socket.h"
23 // Returns a new socket for blocking communication. The type can be
28 virtual Socket* CreateSocket(int type) = 0;
29 virtual Socket* CreateSocket(int family, int type) = 0;
30 // Returns a new socket for nonblocking communication. The type can be
  /libcore/luni/src/main/java/java/net/
SocketUtils.java 24 * Helps us reuse more of Socket's implementation in SocketChannelImpl.SocketAdapter.
25 * It's not the case that we should set isCreated in the Socket(SocketImpl) constructor;
29 public static void setCreated(Socket s) {
  /external/apache-http/src/org/apache/http/conn/scheme/
LayeredSocketFactory.java 35 import java.net.Socket;
40 * See there for things to consider when implementing a socket factory.
54 * Returns a socket connected to the given host that is layered over an
55 * existing socket. Used primarily for creating secure sockets through
58 * @param socket the existing socket
61 * @param autoClose a flag for closing the underling socket when the created
62 * socket is closed
64 * @return Socket a new socket
    [all...]
SocketFactory.java 36 import java.net.Socket;
44 * The factory encapsulates the logic for establishing a socket connection.
62 * Creates a new, unconnected socket.
63 * The socket should subsequently be passed to
66 * @return a new socket
68 * @throws IOException if an I/O error occurs while creating the socket
70 Socket createSocket()
76 * Connects a socket to the given host.
78 * @param sock the socket to connect, as obtained from
80 * <code>null</code> indicates that a new socket
    [all...]
  /external/smack/src/org/jivesoftware/smack/proxy/
DirectSocketFactory.java 24 import java.net.Socket;
43 public Socket createSocket(String host, int port)
46 Socket newSocket = new Socket(Proxy.NO_PROXY);
52 public Socket createSocket(String host ,int port, InetAddress localHost,
56 return new Socket(host,port,localHost,localPort);
59 public Socket createSocket(InetAddress host, int port)
62 Socket newSocket = new Socket(Proxy.NO_PROXY);
67 public Socket createSocket( InetAddress address, int port,
    [all...]
  /external/deqp/framework/delibs/decpp/
deSocket.cpp 76 // Socket
78 Socket::Socket (void)
85 Socket::~Socket (void)
90 void Socket::setFlags (deUint32 flags)
93 throw SocketError("Setting socket flags failed");
96 void Socket::listen (const SocketAddress& address)
99 throw SocketError("Listening on socket failed");
102 void Socket::connect (const SocketAddress& address
    [all...]
deSocket.hpp 72 class Socket
75 Socket (void);
76 ~Socket (void);
84 Socket* accept (SocketAddress& clientAddress) { return accept(clientAddress.getPtr()); }
85 Socket* accept (void) { return accept(DE_NULL); }
102 Socket (deSocket* socket) : m_socket(socket) {}
103 Socket (const Socket& other)
    [all...]
  /external/apache-http/src/org/apache/http/conn/
OperatedClientConnection.java 35 import java.net.Socket;
93 * Obtains the socket for this connection.
98 * @return the socket for communicating with the
101 Socket getSocket()
113 * the unconnected socket that will be connected before
115 * the connection to close that socket if
117 * is called before it is open. Closing the unconnected socket
126 * @param sock the unconnected socket which is about to
130 void opening(Socket sock, HttpHost target)
157 * socket connection
    [all...]
  /external/chromium_org/net/udp/
datagram_client_socket.h 8 #include "net/socket/socket.h"
16 public Socket {
20 // Initialize this socket as a client socket to server at |address|.
  /libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
SSLSocketFactoryImpl.java 6 import java.net.Socket;
17 public Socket createSocket(Socket socket, String s, int i, boolean flag)
19 if (socket == null) {
20 throw new IOException("incorrect socket");
30 socket = new Socket(s, i);
32 socket = new Socket(s, i)
    [all...]
  /cts/libs/vogar-expect/src/vogar/util/
IoUtils.java 21 import java.net.Socket;
34 public static void closeQuietly(Socket c) {
  /external/chromium_org/net/socket/
socket.h 15 // Represents a read/write socket.
16 class NET_EXPORT Socket {
18 virtual ~Socket() {}
20 // Reads data, up to |buf_len| bytes, from the socket. The number of bytes
22 // ERR_SOCKET_NOT_CONNECTED should be returned if the socket is not currently
27 // operation is not completed immediately, the socket acquires a reference to
28 // the provided buffer until the callback is invoked or the socket is
29 // closed. If the socket is Disconnected before the read completes, the
34 // Writes data, up to |buf_len| bytes, to the socket. Note: data may be
37 // the socket is not currently connected. The return value when th
    [all...]
  /external/chromium_org/remoting/protocol/
datagram_channel_factory.h 13 class Socket;
21 typedef base::Callback<void(scoped_ptr<net::Socket>)>
  /external/chromium_org/extensions/browser/api/socket/
socket.cc 5 #include "extensions/browser/api/socket/socket.h"
14 #include "net/socket/socket.h"
18 const char kSocketTypeNotSupported[] = "Socket type does not support this API";
21 BrowserContextKeyedAPIFactory<ApiResourceManager<Socket> > > g_factory =
26 BrowserContextKeyedAPIFactory<ApiResourceManager<Socket> >*
27 ApiResourceManager<Socket>::GetFactoryInstance() {
31 Socket::Socket(const std::string& owner_extension_id
    [all...]
  /frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/
SocketConnect.java 6 import java.net.Socket;
16 public SocketConnect(Socket from, Socket to) throws IOException {
41 public static void connect(Socket first, Socket second) {
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
SocketTest.java 30 import java.net.Socket;
48 Socket socket = new Socket(); local
50 socket.connect(addr);
52 socket.close();
73 ServerSocket socket; local
76 socket = new ServerSocket(port, backlog,
78 port = socket.getLocalPort();
81 socket = new ServerSocket(port, backlog)
247 Socket socket = new Socket(proxy); local
275 Socket socket = new Socket(); local
284 Socket socket = new Socket(); local
    [all...]
  /libcore/luni/src/main/java/javax/net/ssl/
DefaultSSLSocketFactory.java 22 import java.net.Socket;
50 public Socket createSocket(Socket s, String host, int port, boolean autoClose)
56 public Socket createSocket(String host, int port) throws IOException, UnknownHostException {
61 public Socket createSocket(String host, int port, InetAddress localHost, int localPort)
67 public Socket createSocket(InetAddress host, int port) throws IOException {
72 public Socket createSocket(InetAddress address, int port, InetAddress localAddress,
  /libcore/luni/src/test/java/libcore/java/net/
OldSocketTest.java 31 import java.net.Socket;
46 Socket s;
60 // create the socket and then validate some basic state
61 s = new Socket();
62 assertFalse("new socket should not be connected", s.isConnected());
63 assertFalse("new socket should not be bound", s.isBound());
64 assertFalse("new socket should not be closed", s.isClosed());
65 assertFalse("new socket should not be in InputShutdown", s
67 assertFalse("new socket should not be in OutputShutdown", s
73 // Test for method java.net.Socket(java.lang.String, int
102 Socket socket = null; local
616 Socket socket = new Socket(); local
889 Socket socket = new Socket(proxy); local
1100 Socket socket = channel.socket(); local
1393 Socket socket = channel.socket(); local
1693 Socket socket = channel.socket(); local
2039 Socket socket = new Socket(); local
2050 Socket socket = new Socket(); local
2061 Socket socket = new Socket(); local
2092 Socket socket = channel.socket(); local
    [all...]
  /external/apache-harmony/support/src/test/java/tests/support/
Support_HttpSocket.java 23 import java.net.Socket;
30 private final Socket instance;
34 Support_HttpSocket(Socket socket) {
35 instance = socket;

Completed in 1515 milliseconds

1 2 3 4 5 6 7 8 91011>>