HomeSort by relevance Sort by last modified time
    Searched full:socket (Results 76 - 100 of 4983) sorted by null

1 2 34 5 6 7 8 91011>>

  /external/toybox/lib/
net.c 5 int fd = socket(domain, type, protocol);
7 if (fd < 0) perror_exit("socket %x %x", type, protocol);
  /developers/samples/android/connectivity/wifidirect/DirectP2P/Application/src/main/java/com/example/android/wifidirectp2p/
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(MainActivity.TAG, "Opening client socket - ");
55 socket.bind(null);
56 socket.connect((new InetSocketAddress(host, port)), SOCKET_TIMEOUT);
58 Log.d(MainActivity.TAG, "Client socket - " + socket.isConnected())
    [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...]
  /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...]
  /cts/tests/tests/net/src/android/net/cts/
LocalSocketTest.java 33 // create client and server socket
95 //close client socket
104 //close server socket
115 LocalSocket socket = new LocalSocket(); local
118 assertFalse(socket.isBound());
119 socket.bind(addr);
120 assertTrue(socket.isBound());
121 assertEquals(addr, socket.getLocalSocketAddress());
123 String str = socket.toString();
126 socket.setReceiveBufferSize(1999)
    [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/luni/src/main/java/java/nio/
ServerSocketChannelImpl.java 25 import java.net.Socket;
45 private final ServerSocketAdapter socket; field in class:ServerSocketChannelImpl
51 this.socket = new ServerSocketAdapter(this);
54 @Override public ServerSocket socket() { method in class:ServerSocketChannelImpl
55 return socket;
63 if (!socket.isBound()) {
67 // Create an empty socket channel. This will be populated by ServerSocketAdapter.implAccept.
73 socket.implAccept(result);
78 // Otherwise, this is a non-blocking socket and there's nothing ready, so we'll
102 IoUtils.setBlocking(socket.getFD$(), blocking)
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
OldSocketTest.java 31 import java.net.Socket;
47 Socket s;
61 // create the socket and then validate some basic state
62 s = new Socket();
63 assertFalse("new socket should not be connected", s.isConnected());
64 assertFalse("new socket should not be bound", s.isBound());
65 assertFalse("new socket should not be closed", s.isClosed());
66 assertFalse("new socket should not be in InputShutdown", s
68 assertFalse("new socket should not be in OutputShutdown", s
74 // Test for method java.net.Socket(java.lang.String, int
103 Socket socket = null; local
617 Socket socket = new Socket(); local
890 Socket socket = new Socket(proxy); local
1091 Socket socket = channel.socket(); local
1396 Socket socket = channel.socket(); local
1696 Socket socket = channel.socket(); local
2042 Socket socket = new Socket(); local
2053 Socket socket = new Socket(); local
2064 Socket socket = new Socket(); local
2095 Socket socket = channel.socket(); local
    [all...]
SocketTest.java 27 import java.net.Socket;
43 Socket s = new Socket();
45 // Closing a closed socket does nothing.
55 Socket s = new Socket();
63 // Now close the socket...
76 new Socket("localhost", 80);
95 ssc.socket().bind(listenAddr, 0);
96 ServerSocket ss = ssc.socket();
246 Socket socket = new Socket("localhost", server.port); local
268 Socket socket = new Socket("localhost", server.port); local
299 Socket socket = serverSocket.accept(); local
308 Socket socket = new Socket("localhost", serverSocket.getLocalPort()); local
    [all...]
  /hardware/ril/libril/
RilSapSocket.h 31 * <li>Initialize the socket.
32 * <li>Process the requests coming on the socket.
82 * Initialize the socket and add the socket to the list.
84 * @param Name of the socket.
85 * @param Radio functions to be used by the socket.
103 * Function to print the socket list.
113 * Datatype to handle the socket list.
116 RilSapSocket* socket; member in struct:RilSapSocket::RilSapSocketList
122 * Process each record read from the socket an
    [all...]
RilSocket.h 28 * Abstract socket class representing sockets in rild.
32 * <li> Start socket listen.
33 * <li> Handle socket listen and command callbacks.
40 * Socket name.
45 * Socket id.
50 * Listen socket file descriptor.
55 * Commands socket file descriptor.
60 * Socket request loop thread id.
75 * Listen event to be added to eventloop after socket listen.
85 * Static socket listen handler. Chooses the socket to call the listen callbac
265 RilSocket *socket; member in struct:MySocketListenParam
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_socket.py 7 import socket namespace
21 def try_address(host, port=0, family=socket.AF_INET):
22 """Try to bind a socket on the given host:port and return True
25 sock = socket.socket(family, socket.SOCK_STREAM)
27 except (socket.error, socket.gaierror):
35 SUPPORTS_IPV6 = socket.has_ipv6 and try_address('::1', family=socket.AF_INET6
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_socket.py 7 import socket namespace
21 def try_address(host, port=0, family=socket.AF_INET):
22 """Try to bind a socket on the given host:port and return True
25 sock = socket.socket(family, socket.SOCK_STREAM)
27 except (socket.error, socket.gaierror):
35 SUPPORTS_IPV6 = socket.has_ipv6 and try_address('::1', family=socket.AF_INET6
    [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();
  /libcore/luni/src/main/java/javax/net/
ServerSocketFactory.java 27 * subclassed to create specific server socket types.
33 * Gets the default server socket factory of the system which can be used to
36 * @return the system default server socket factory.
52 * Creates a new server socket which is not bound to any local address. This
56 * @return the created unbound server socket.
58 * if an error occurs while creating a new server socket.
66 * Creates a new server socket which is bound to the given port with a
69 * @param port the port on which the created socket has to listen.
70 * @return the created bound server socket.
72 * if an error occurs while creating a new server socket
    [all...]
  /libcore/luni/src/main/java/java/net/
Socket.java 29 * Provides a client-side TCP socket.
31 public class Socket implements Closeable {
49 * Creates a new unconnected socket. When a SocketImplFactory is defined it
50 * creates the internal socket implementation, otherwise the default socket
51 * implementation will be used for this socket.
56 public Socket() {
62 * Creates a new unconnected socket using the given proxy type. When a
63 * {@code SocketImplFactory} is defined it creates the internal socket
64 * implementation, otherwise the default socket implementation will be use
    [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...]
  /development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
GroupOwnerSocketHandler.java 19 ServerSocket socket = null; field in class:GroupOwnerSocketHandler
26 socket = new ServerSocket(4545);
28 Log.d("GroupOwnerSocketHandler", "Socket Started");
50 pool.execute(new ChatManager(socket.accept(), handler));
55 if (socket != null && !socket.isClosed())
56 socket.close();
  /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);
  /external/conscrypt/src/compat/java/org/conscrypt/
BaseOpenSSLSocketAdapterFactory.java 20 import java.net.Socket;
44 public Socket createSocket() throws IOException {
49 public Socket createSocket(String hostname, int port)
55 public Socket createSocket(String hostname, int port, InetAddress localHost, int localPort)
61 public Socket createSocket(InetAddress address, int port) throws IOException {
66 public Socket createSocket(InetAddress address,
76 public Socket createSocket(Socket s, String hostname, int port, boolean autoClose)
85 protected abstract Socket wrap(OpenSSLSocketImpl sock) throws IOException;
  /external/libvncserver/webclients/novnc/include/web-socket-js/
README.txt 6 http://github.com/gimite/web-socket-ruby/tree/master
7 - Run sample Web Socket server (echo server) in example.com with: (#1)
8 $ ruby web-socket-ruby/samples/echo_server.rb example.com 10081
9 - If your server already provides socket policy file at port 843, modify the file to allow access to port 10081. Otherwise you can skip this step. See below for details.
10 - Publish the web-socket-js directory with your Web server (e.g. put it in ~/public_html).
15 #1: First argument of echo_server.rb means that it accepts Web Socket connection from HTML pages in example.com.
26 -- It's likely an issue of web-socket-js specific configuration (e.g. 3 and 4 below).
28 -- Check "Supported environment" section below. Your browser may not be supported by web-socket-js.
34 3. Make sure you do NOT open your HTML page as local file e.g. file:///.../sample.html. web-socket-js doesn't work on local file. Open it via Web server e.g. http:///.../sample.html.
36 4. If you are NOT using web-socket-ruby as your WebSocket server, you need to place Flash socket policy file on your server. See "Fla (…)
    [all...]
  /device/moto/shamu/sepolicy/
thermald.te 15 # Talk to qmuxd (/dev/socket/qmux_radio)
18 # Create and access to /dev/socket/thermal-.*
23 allow thermald self:socket create_socket_perms;
  /external/sepolicy/
net.te 18 # Talks to netd via dnsproxyd socket.
21 # Talks to netd via fwmarkd socket.
24 # Connect to mdnsd via mdnsd socket.
  /external/valgrind/memcheck/tests/
buflen_check.c 1 #include <sys/socket.h>
11 res1 = socket(PF_UNIX, SOCK_STREAM, 0);
13 fprintf(stderr, "socket() failed\n");

Completed in 341 milliseconds

1 2 34 5 6 7 8 91011>>