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

1 2 34 5 6 7 8 91011>>

  /external/chromium/third_party/libjingle/source/talk/base/
asynctcpsocket.h 43 explicit AsyncTCPSocket(AsyncSocket* socket, bool listen);
52 virtual Socket::ConnState GetState() const;
53 virtual int GetOption(Socket::Option opt, int* value);
54 virtual int SetOption(Socket::Option opt, int value);
65 // Called by the underlying socket
66 void OnConnectEvent(AsyncSocket* socket);
67 void OnReadEvent(AsyncSocket* socket);
68 void OnWriteEvent(AsyncSocket* socket);
69 void OnCloseEvent(AsyncSocket* socket, int error);
asyncudpsocket.cc 41 scoped_ptr<AsyncSocket> socket(factory->CreateAsyncSocket(SOCK_DGRAM));
42 if (!socket.get())
44 if (socket->Bind(address)) {
45 LOG(LS_INFO) << "Failed to bind UDP socket " << socket->GetError();
48 return new AsyncUDPSocket(socket.release());
51 AsyncUDPSocket::AsyncUDPSocket(AsyncSocket* socket)
52 : socket_(socket) {
57 // The socket should start out readable but not writable.
88 Socket::ConnState AsyncUDPSocket::GetState() const
    [all...]
firewallsocketserver.h 61 // Settings to control whether CreateSocket or Socket::Listen succeed.
78 virtual Socket* CreateSocket(int type);
90 Socket * WrapSocket(Socket * sock, int type);
  /external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/channel/
StreamForwarder.java 10 import java.net.Socket;
15 * then one can be configured to shutdown the underlying channel/socket
28 Socket s;
31 StreamForwarder(Channel c, StreamForwarder sibling, Socket s, InputStream is, OutputStream os, String mode)
RemoteAcceptThread.java 8 import java.net.Socket;
31 Socket s;
55 s = new Socket(targetAddress, targetPort);
  /external/nist-sip/java/gov/nist/javax/sip/stack/
IOHandler.java 50 * Low level Input output to a socket. Caches TCP connections and takes care of re-connecting to
73 private ConcurrentHashMap<String, Socket> socketTable;
82 this.socketTable = new ConcurrentHashMap<String, Socket>();
86 protected void putSocket(String key, Socket sock) {
91 protected Socket getSocket(String key) {
92 return (Socket) socketTable.get(key);
120 * Creates and binds, if necessary, a socket connected to the specified destination address
123 * @param dst the destination address that the socket would need to connect to.
126 * @param localPort the port that we'd like our socket to bind to (0 for a random port).
137 Socket clientSock = getSocket(key)
    [all...]
  /frameworks/base/core/java/android/net/http/
HttpConnection.java 21 import java.net.Socket;
58 Socket sock = new Socket(mHost.getHostName(), mHost.getPort());
  /libcore/luni/src/main/java/java/util/logging/
SocketHandler.java 22 import java.net.Socket;
25 * A handler that writes log messages to a socket connection.
62 // the socket connection
63 private Socket socket; field in class:SocketHandler
102 // Initialize the socket connection and prepare the output stream
120 this.socket = new Socket(host, p);
126 super.internalSetOutputStream(new BufferedOutputStream(this.socket.getOutputStream()));
136 if (this.socket != null)
    [all...]
  /libcore/luni/src/main/java/javax/net/ssl/
SSLSocketFactory.java 21 import java.net.Socket;
32 // The default SSL socket factory
41 * @return the default ssl socket factory instance.
103 * Creates an {@code SSLSocket} over the specified socket that is connected
107 * the socket.
113 * {@code true} if socket {@code s} should be closed when the
114 * created socket is closed, {@code false} if the socket
116 * @return the creates ssl socket.
118 * if creating the socket fails
    [all...]
  /sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/
VersionLoader.java 29 import java.net.Socket;
41 Socket socket = null; local
46 socket = new Socket();
47 socket.connect(new InetSocketAddress("127.0.0.1",
50 out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
51 in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
68 if (socket != null) {
69 socket.close()
    [all...]
ViewManager.java 27 import java.net.Socket;
43 Socket socket = null; local
47 socket = new Socket();
48 socket.connect(new InetSocketAddress("127.0.0.1",
51 out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
63 if (socket != null) {
64 socket.close();
ProfilesLoader.java 24 import java.net.Socket;
38 Socket socket = null; local
43 socket = new Socket();
44 socket.connect(new InetSocketAddress("127.0.0.1",
47 out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
48 in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
72 if (socket != null) {
73 socket.close()
    [all...]
WindowsLoader.java 29 import java.net.Socket;
34 Socket socket = null; local
42 socket = new Socket();
43 socket.connect(new InetSocketAddress("127.0.0.1",
46 out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
47 in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
86 if (socket != null) {
87 socket.close()
    [all...]
  /frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/forwarder/
ConnectionHandler.java 26 import java.net.Socket;
86 private Socket mFromSocket, mToSocket;
96 public ConnectionHandler(String remoteMachineIp, int port, Socket fromSocket, Socket toSocket)
144 private void shutdown(Socket socket) {
149 if (!socket.isInputShutdown()) {
150 socket.shutdownInput();
156 if (!socket.isOutputShutdown()) {
157 socket.shutdownOutput()
    [all...]
Forwarder.java 23 import java.net.Socket;
29 * communications to external socket via adb networking proxy.
63 Socket localSocket;
72 Socket remoteSocket = null;
  /libcore/luni/src/test/java/tests/api/javax/net/
SocketFactoryTest.java 28 import java.net.Socket;
45 Socket s = sf.createSocket();
63 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport);
65 assertTrue("Failed to create socket", s.getPort() == sport);
100 Socket s = sf.createSocket(InetAddress.getLocalHost(), sport);
102 assertTrue("Failed to create socket", s.getPort() == sport);
131 Socket s = sf.createSocket(InetAddress.getLocalHost(), sport,
134 assertTrue("1: Failed to create socket", s.getPort() == sport);
177 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport,
180 assertTrue("1: Failed to create socket", s.getPort() == sport)
    [all...]
  /frameworks/base/core/java/android/net/
SSLCertificateSocketFactory.java 23 import java.net.Socket;
53 * The handshake timeout does not apply to actual TCP socket connection.
55 * and {@link Socket#connect(SocketAddress, int)}, after which you
62 * use {@link InetAddress} or which return an unconnected socket, you MUST
69 * <p>On development devices, "setprop socket.relaxsslcheck yes" bypasses all
112 * Returns a new socket factory instance with an optional handshake timeout.
115 * for none. The socket timeout is reset to 0 after the handshake.
123 * Returns a new socket factory instance with an optional handshake timeout
127 * for none. The socket timeout is reset to 0 after the handshake.
136 * Returns a new instance of a socket factory with all SSL security check
    [all...]