HomeSort by relevance Sort by last modified time
    Searched refs:Socket (Results 101 - 125 of 415) sorted by null

1 2 3 45 6 7 8 91011>>

  /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...]
  /libcore/support/src/test/java/libcore/javax/net/ssl/
ForwardingX509ExtendedKeyManager.java 19 import java.net.Socket;
38 public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) {
39 return delegate.chooseClientAlias(keyType, issuers, socket);
43 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) {
44 return delegate.chooseServerAlias(keyType, issuers, socket);
  /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/core/java/android/net/
SSLCertificateSocketFactory.java 26 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
110 * Returns a new socket factory instance with an optional handshake timeout.
113 * for none. The socket timeout is reset to 0 after the handshake.
121 * Returns a new socket factory instance with an optional handshake timeout
125 * for none. The socket timeout is reset to 0 after the handshake.
134 * Returns a new instance of a socket factory with all SSL security check
    [all...]
  /external/chromium_org/chrome/browser/extensions/api/socket/
socket.h 19 #include "net/socket/tcp_client_socket.h"
24 class Socket;
38 // A Socket wraps a low-level socket and includes housekeeping information that
40 class Socket : public ApiResource {
47 virtual ~Socket();
97 explicit Socket(const std::string& owner_extension_id_);
109 friend class ApiResourceManager<Socket>;
tcp_socket.h 10 #include "chrome/browser/extensions/api/socket/socket.h"
14 #include "net/socket/tcp_client_socket.h"
15 #include "net/socket/tcp_server_socket.h"
18 class Socket;
23 class TCPSocket : public Socket {
56 virtual Socket::SocketType GetSocketType() const OVERRIDE;
  /external/okhttp/android/main/java/com/squareup/okhttp/internal/
Platform.java 24 import java.net.Socket;
54 public void tagSocket(Socket socket) throws SocketException {
55 SocketTagger.get().tag(socket);
58 public void untagSocket(Socket socket) throws SocketException {
59 SocketTagger.get().untag(socket);
66 public void enableTlsExtensions(SSLSocket socket, String uriHost) {
67 if (socket instanceof OpenSSLSocketImpl) {
68 OpenSSLSocketImpl openSSLSocket = (OpenSSLSocketImpl) socket;
    [all...]
  /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...]
  /cts/tests/tests/net/src/android/net/cts/
VpnServiceTest.java 25 import java.net.Socket;
64 DatagramSocket socket = new DatagramSocket(); local
67 assertFalse(mVpnService.protect(socket));
70 socket.close();
78 Socket socket = new Socket(); local
81 assertFalse(mVpnService.protect(socket));
84 socket.close();
92 DatagramSocket socket = new DatagramSocket() local
    [all...]
  /development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/
FileTransferService.java 17 import java.net.Socket;
21 * socket connection with the WiFi Direct Group Owner and writing the file
50 Socket socket = new Socket(); local
54 Log.d(WiFiDirectActivity.TAG, "Opening client socket - ");
55 socket.bind(null);
56 socket.connect((new InetSocketAddress(host, port)), SOCKET_TIMEOUT);
58 Log.d(WiFiDirectActivity.TAG, "Client socket - " + socket.isConnected())
    [all...]
  /external/chromium/third_party/libjingle/source/talk/base/
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/chromium_org/third_party/libjingle/source/talk/p2p/base/
relayport.h 52 typedef std::pair<talk_base::Socket::Option, int> OptionValue;
74 virtual int SetOption(talk_base::Socket::Option opt, int value);
75 virtual int GetOption(talk_base::Socket::Option opt, int* value);
  /external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/channel/
RemoteAcceptThread.java 8 import java.net.Socket;
31 Socket s;
55 s = new Socket(targetAddress, targetPort);
  /external/smack/src/org/jivesoftware/smackx/bytestreams/socks5/
Socks5ClientForInitiator.java 17 import java.net.Socket;
63 public Socket getSocket(int timeout) throws IOException, XMPPException, InterruptedException,
65 Socket socket = null; local
70 socket = socks5Server.getSocket(this.digest);
71 if (socket == null) {
76 socket = super.getSocket(timeout);
82 socket.close();
88 return socket;
  /external/chromium/net/socket/
client_socket.h 10 #include "net/socket/socket.h"
17 class ClientSocket : public Socket {
27 // The socket's Read and Write methods may not be called until Connect
30 // It is valid to call Connect on an already connected socket, in which case
43 // Called to disconnect a socket. Does nothing if the socket is already
47 // If IO (Connect, Read, or Write) is pending when the socket is
62 // ERR_SOCKET_NOT_CONNECTED will be returned if the socket is not connected.
67 // ERR_SOCKET_NOT_CONNECTED will be returned if the socket is not connected
    [all...]
ssl_server_socket_openssl.cc 6 #include "net/socket/ssl_server_socket.h"
23 // Socket
52 SSLServerSocket* CreateSSLServerSocket(Socket* socket,
  /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/remoting/jingle_glue/
chromium_socket_factory.cc 53 virtual int GetOption(talk_base::Socket::Option option, int* value) OVERRIDE;
54 virtual int SetOption(talk_base::Socket::Option option, int value) OVERRIDE;
135 // Failed to bind the socket.
205 int UdpPacketSocket::GetOption(talk_base::Socket::Option option, int* value) {
211 int UdpPacketSocket::SetOption(talk_base::Socket::Option option, int value) {
218 case talk_base::Socket::OPT_DONTFRAGMENT:
222 case talk_base::Socket::OPT_RCVBUF: {
227 case talk_base::Socket::OPT_SNDBUF: {
232 case talk_base::Socket::OPT_NODELAY:
237 case talk_base::Socket::OPT_IPV6_V6ONLY
    [all...]

Completed in 800 milliseconds

1 2 3 45 6 7 8 91011>>