HomeSort by relevance Sort by last modified time
    Searched refs:Socket (Results 1 - 25 of 282) 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...]
  /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.
49 * Returns a socket connected to the given host that is layered over an
50 * existing socket. Used primarily for creating secure sockets through
53 * @param socket the existing socket
56 * @param autoClose a flag for closing the underling socket when the created
57 * socket is closed
59 * @return Socket a new socket
    [all...]
SocketFactory.java 36 import java.net.Socket;
44 * The factory encapsulates the logic for establishing a socket connection.
57 * Creates a new, unconnected socket.
58 * The socket should subsequently be passed to
61 * @return a new socket
63 * @throws IOException if an I/O error occurs while creating the socket
65 Socket createSocket()
71 * Connects a socket to the given host.
73 * @param sock the socket to connect, as obtained from
75 * <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/webkit/Source/WebKit/android/wds/
Connection.h 30 #include <sys/socket.h>
36 class Socket {
38 Socket(): m_fd(-1) {}
39 Socket(int fd): m_fd(fd) {}
40 ~Socket() {
46 // Open a new socket using PF_INET and SOCK_STREAM
66 Socket m_socket;
76 // Blocks on the established socket until a new connection arrives.
79 Socket m_socket;
  /external/apache-http/src/org/apache/http/conn/
OperatedClientConnection.java 35 import java.net.Socket;
88 * Obtains the socket for this connection.
93 * @return the socket for communicating with the
96 Socket getSocket()
108 * the unconnected socket that will be connected before
110 * the connection to close that socket if
112 * is called before it is open. Closing the unconnected socket
121 * @param sock the unconnected socket which is about to
125 void opening(Socket sock, HttpHost target)
152 * socket connection
    [all...]
  /external/chromium/net/udp/
datagram_client_socket.h 9 #include "net/socket/socket.h"
16 class DatagramClientSocket : public DatagramSocket, public Socket {
20 // Initialize this socket as a client socket to server at |address|.
  /external/chromium/third_party/libjingle/source/talk/base/
socketfactory.h 31 #include "talk/base/socket.h"
40 // Returns a new socket for blocking communication. The type can be
42 virtual Socket* CreateSocket(int type) = 0;
44 // Returns a new socket for nonblocking communication. The type can be
  /libcore/luni/src/test/java/libcore/java/net/
ServerSocketTest.java 21 import java.net.Socket;
30 final Socket[] result = new Socket[1];
42 new Socket(ss.getInetAddress(), ss.getLocalPort());
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
103 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...]
  /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/apache-http/src/org/apache/http/impl/io/
SocketOutputBuffer.java 35 import java.net.Socket;
41 * {@link Socket} bound session output buffer.
52 final Socket socket,
56 if (socket == null) {
57 throw new IllegalArgumentException("Socket may not be null");
64 init(socket.getOutputStream(), 8192, params);
  /external/chromium/net/socket/
socket.h 15 // Represents a read/write socket.
16 class Socket {
18 virtual ~Socket() {}
20 // Reads data, up to buf_len bytes, from the socket. The number of bytes read
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: only part of the
37 // the socket is not currently connected. The return value when th
    [all...]
ssl_server_socket.h 10 #include "net/socket/socket.h"
22 // SSLServerSocket takes an already connected socket and performs SSL on top of
27 class SSLServerSocket : public Socket {
31 // Performs an SSL server handshake on the existing socket. The given socket
40 // Creates an SSL server socket using an already connected socket. A certificate
43 // This created server socket will take ownership of |socket|. However |key
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/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 = null; 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,
X509KeyManager.java 20 import java.net.Socket;
39 * @param socket
40 * the socket for the connection, or {@code null} if
41 * the alias selected does not depend on a specific socket.
46 Socket socket);
57 * @param socket
58 * the socket for the connection, or {@code null} if
59 * the alias selected does not depend on a specific socket.
64 Socket socket)
    [all...]
  /external/v8/src/
debug-agent.h 42 // Debugger agent which starts a socket listener on the debugger port and
69 void CreateSession(Socket* socket);
77 Socket* server_; // Server socket for listen/accept.
95 DebuggerAgentSession(DebuggerAgent* agent, Socket* client)
108 Socket* client_;
119 static SmartArrayPointer<char> ReceiveMessage(const Socket* conn);
120 static bool SendConnectMessage(const Socket* conn,
122 static bool SendMessage(const Socket* conn, const Vector<uint16_t> message)
    [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;
  /frameworks/support/v4/ics/android/support/v4/net/
TrafficStatsCompatIcs.java 21 import java.net.Socket;
48 public static void tagSocket(Socket socket) throws SocketException {
49 TrafficStats.tagSocket(socket);
52 public static void untagSocket(Socket socket) throws SocketException {
53 TrafficStats.untagSocket(socket);
  /libcore/luni/src/test/java/tests/api/javax/net/ssl/
SSLSocketFactoryTest.java 20 import java.net.Socket;
57 assertNotNull("Incorrect default socket factory",
62 * javax.net.ssl.SSLSocketFactory#createSocket(Socket s, String host, int port, boolean autoClose)
71 Socket st = new Socket("localhost", sport);
72 Socket s = sf.createSocket(st, "localhost", sport, false);
78 Socket st = new Socket("localhost", sport);
79 Socket s = sf.createSocket(st, "localhost", sport, true);
95 Socket s = sf.createSocket(new Socket(), "localhost", 1080, false)
    [all...]
  /external/nist-sip/java/gov/nist/core/net/
DefaultNetworkLayer.java 34 import java.net.Socket;
74 public Socket createSocket(InetAddress address, int port)
76 return new Socket(address, port);
117 public Socket createSocket(InetAddress address, int port,
120 return new Socket(address, port, myAddress, 0);
122 return new Socket(address, port);
126 * Creates a new Socket, binds it to myAddress:myPort and connects it to
136 * @return a new Socket, bound on myAddress:myPort and connected to
138 * @throws IOException if binding or connecting the socket fail for a reason
139 * (exception relayed from the correspoonding Socket methods
    [all...]

Completed in 1433 milliseconds

1 2 3 4 5 6 7 8 91011>>