HomeSort by relevance Sort by last modified time
    Searched refs:Socket (Results 26 - 50 of 282) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/net/
UnixSocketTest.java 27 import java.net.Socket;
35 * @tests java.net.Socket#getInputStream()
40 Socket pingClient = new Socket();
46 Socket worker = pingServer.accept();
91 Socket theSocket = new Socket();
110 Socket socket = new Socket("127.0.0.1", port, false) local
    [all...]
  /external/chromium/webkit/glue/
p2p_transport.h 11 class Socket;
48 // Returns socket interface that can be used to send/receive
50 // the socket are canceled when the transport is destroyed.
51 virtual net::Socket* GetChannel() = 0;
  /frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/forwarder/
Forwarder.java 24 import java.net.Socket;
36 private Socket from, to;
41 public Forwarder (Socket from, Socket to, ForwardServer server) {
62 private void shutdown(Socket socket) {
64 socket.shutdownInput();
66 Log.v(LOGTAG, "Socket#shutdownInput", e);
69 socket.shutdownOutput();
71 Log.v(LOGTAG, "Socket#shutdownOutput", e)
    [all...]
AdbUtils.java 25 import java.net.Socket;
59 Socket localSocket = new Socket(ADB_HOST, ADB_PORT);
78 * Send an ADB command using existing socket connection
80 * the streams provided must be from a socket connected to adbd already
82 * @param is input stream of the socket connection
83 * @param os output stream of the socket
104 * Get a tcp socket connection to specified IP address and port proxied by adb
106 * The proxying is transparent, e.g. if a socket is returned, then it can be written to and
111 * @return a valid Socket instance if successful, null otherwis
115 Socket socket = new Socket(ADB_HOST, ADB_PORT); local
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
OpenSSLSocketFactoryImpl.java 21 import java.net.Socket;
56 public Socket createSocket() throws IOException {
63 public Socket createSocket(String host, int port) throws IOException, UnknownHostException {
67 public Socket createSocket(String host, int port, InetAddress localHost, int localPort)
76 public Socket createSocket(InetAddress host, int port) throws IOException {
80 public Socket createSocket(InetAddress address,
92 public Socket createSocket(Socket s, String host, int port, boolean autoClose)
  /libcore/luni/src/test/java/libcore/java/net/
OldUnixSocketTest.java 27 import java.net.Socket;
36 Socket pingClient = new Socket();
42 Socket worker = pingServer.accept();
87 Socket theSocket = new Socket();
106 Socket socket = new Socket("127.0.0.1", port, false); local
107 OutputStream o = socket.getOutputStream()
    [all...]
  /external/apache-harmony/x-net/src/test/impl/java.injected/javax/net/
SocketFactoryTest.java 26 import java.net.Socket;
39 * Class under test for java.net.Socket createSocket()
57 Socket s;
85 public Socket createSocket(String host, int port) throws IOException, UnknownHostException {
90 public Socket createSocket(String host, int port, InetAddress localHost, int localPort)
96 public Socket createSocket(InetAddress host, int port) throws IOException {
101 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)
  /libcore/support/src/test/java/tests/net/
StuckServer.java 23 import java.net.Socket;
34 private ArrayList<Socket> clients = new ArrayList<Socket>();
52 Socket client = new Socket(serverSocket.getInetAddress(), serverSocket.getLocalPort());
81 for (Socket client : clients) {
  /external/v8/test/cctest/
test-sockets.cc 38 Socket* server_; // Server socket used for bind/accept.
39 Socket* client_; // Single client connection used by the test.
40 Semaphore* listening_; // Signalled when the server socket is in listen mode.
47 // Create the server socket and bind it to the requested port.
71 static bool SendAll(Socket* socket, const char* data, int len) {
74 int status = socket->Send(data, len);
94 // Create a socket listener.
100 Socket* client = OS::CreateSocket()
    [all...]
  /external/apache-http/src/org/apache/http/conn/scheme/
PlainSocketFactory.java 37 import java.net.Socket;
62 * @return the one and only plain socket factory
79 public Socket createSocket() {
80 return new Socket();
84 public Socket connectSocket(Socket sock, String host, int port,
129 * Checks whether a socket connection is secure.
130 * This factory creates plain socket connections
133 * @param sock the connected socket
139 public final boolean isSecure(Socket sock
    [all...]
  /libcore/luni/src/test/java/libcore/javax/net/ssl/
SSLSocketFactoryTest.java 22 import java.net.Socket;
55 Socket s = sf.createSocket(null, null, -1, false);
62 Socket ssl = sf.createSocket(new Socket(), null, -1, false);
71 Socket s = new Socket(host, port);
73 Socket ssl = sf.createSocket(s, null, -1, false);
  /external/smack/src/org/jivesoftware/smackx/bytestreams/socks5/
Socks5Client.java 20 import java.net.Socket;
59 * Returns the initialized socket that can be used to transfer data between peers via the SOCKS5
63 * @return socket the initialized socket
64 * @throws IOException if initializing the socket failed due to a network error
69 public Socket getSocket(int timeout) throws IOException, XMPPException, InterruptedException,
73 FutureTask<Socket> futureTask = new FutureTask<Socket>(new Callable<Socket>() {
75 public Socket call() throws Exception {
    [all...]
Socks5BytestreamSession.java 23 import java.net.Socket;
35 /* the underlying socket of the SOCKS5 Bytestream */
36 private final Socket socket; field in class:Socks5BytestreamSession
41 protected Socks5BytestreamSession(Socket socket, boolean isDirect) {
42 this.socket = socket;
69 return this.socket.getInputStream();
73 return this.socket.getOutputStream();
    [all...]
  /frameworks/support/v4/java/android/support/v4/net/
TrafficStatsCompat.java 21 import java.net.Socket;
36 void tagSocket(Socket socket) throws SocketException;
37 void untagSocket(Socket socket) throws SocketException;
76 public void tagSocket(Socket socket) {
80 public void untagSocket(Socket socket) {
111 public void tagSocket(Socket socket) throws SocketException
    [all...]
  /libcore/luni/src/test/java/libcore/javax/net/
ServerSocketFactoryTest.java 25 import java.net.Socket;
67 Socket s = serverSocket.accept();
75 Socket socket = new Socket(InetAddress.getLocalHost(), serverSocket.getLocalPort()); local
79 InputStream in = socket.getInputStream();
83 socket.close();
93 List<Socket> backlog = new ArrayList<Socket>();
98 Socket socket = new Socket() local
    [all...]
  /development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
ClientSocketHandler.java 10 import java.net.Socket;
26 Socket socket = new Socket(); local
28 socket.bind(null);
29 socket.connect(new InetSocketAddress(mAddress.getHostAddress(),
32 chat = new ChatManager(socket, handler);
37 socket.close();
  /external/chromium/third_party/libjingle/source/talk/base/
asyncpacketsocket.h 32 #include "talk/base/socket.h"
48 // Returns remote address. Returns zeroes if this is not a client TCP socket.
55 // Close the socket.
58 // Returns current state of the socket.
59 virtual Socket::ConnState GetState() const = 0;
62 virtual int GetOption(Socket::Option opt, int* value) = 0;
63 virtual int SetOption(Socket::Option opt, int value) = 0;
70 // Emitted after address for the socket is allocated.
asyncudpsocket.h 41 // Creates a new socket for sending asynchronous UDP packets using an
42 // asynchronous socket from the given factory.
45 explicit AsyncUDPSocket(AsyncSocket* socket);
54 virtual Socket::ConnState GetState() const;
55 virtual int GetOption(Socket::Option opt, int* value);
56 virtual int SetOption(Socket::Option opt, int value);
61 // Called when the underlying socket is ready to be read from.
62 void OnReadEvent(AsyncSocket* socket);
  /frameworks/base/tests/CoreTests/android/core/
SocketTest.java 26 import java.net.Socket;
37 * Regression tests for various socket related problems. And a few general
38 * socket tests.
52 Socket s, s1;
73 s = new Socket("127.0.0.1", port);
88 Socket s2 = new Socket();
122 Socket sock = serverSock.accept();
139 Socket client = new Socket("localhost", 8383)
    [all...]
  /frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/forwarder/
AdbUtils.java 24 import java.net.Socket;
27 * The utility class that can setup a socket allowing the device to communicate with remote
39 * Creates a new socket that can be configured to serve as a transparent proxy to a
42 * @return a socket that can be configured to link to remote machine
45 public static Socket createSocket() throws IOException{
46 return new Socket(ADB_HOST, ADB_PORT);
51 * The given streams must belong to a socket created by createSocket().
53 * @param inputStream inputStream of the socket we want to configure
54 * @param outputStream outputStream of the socket we want to configure
  /libcore/dalvik/src/main/java/dalvik/system/
SocketTagger.java 20 import java.net.Socket;
24 * Callbacks for socket assignment and reassignment.
37 * thread. The socket is either newly connected or reused from a connection
47 * <p><strong>Note:</strong> this method will not be invoked when the socket
52 public final void tag(Socket socket) throws SocketException {
53 if (!socket.isClosed()) {
54 tag(socket.getFileDescriptor$());
58 public final void untag(Socket socket) throws SocketException
    [all...]
  /libcore/luni/src/main/java/libcore/net/url/
FtpURLInputStream.java 22 import java.net.Socket;
26 * This class associates a given inputStream with a control socket. This ensures
27 * the control socket Object stays live while the stream is in use
33 private Socket controlSocket;
35 public FtpURLInputStream(InputStream is, Socket controlSocket) {
  /cts/tests/tests/net/src/android/net/cts/
SSLCertificateSocketFactoryTest.java 21 import java.net.Socket;
72 Socket socket = new Socket(); local
73 mFactory.createSocket(socket, host, port, true);
78 Socket socket = null; local
79 socket = mFactory.createSocket(host, port);
80 assertNotNull(socket);
81 assertNotNull(socket.getOutputStream())
    [all...]
  /external/apache-harmony/support/src/test/java/tests/support/
Support_HttpServerSocket.java 22 import java.net.Socket;
37 * Blocks until a connection is made, or the socket times out.
49 Socket s = instance.accept();
  /external/apache-http/src/org/apache/http/conn/
MultihomePlainSocketFactory.java 37 import java.net.Socket;
50 * Socket factory that implements a simple multi-home fail-over on connect failure,
52 * the {@link #connectSocket(Socket, String, int, InetAddress, int, HttpParams)}
53 * method cannot be reliably interrupted by closing the socket returned by the
66 * @return the one and only plain socket factory
81 public Socket createSocket() {
82 return new Socket();
86 * Attempts to connects the socket to any of the {@link InetAddress}es the
90 * @param sock socket to connect to any of the given addresses
100 public Socket connectSocket(Socket sock, String host, int port,
    [all...]

Completed in 1505 milliseconds

12 3 4 5 6 7 8 91011>>