/external/python/cpython3/Tools/demo/ |
mcast.py | 21 import socket 34 addrinfo = socket.getaddrinfo(group, None)[0] 36 s = socket.socket(addrinfo[0], socket.SOCK_DGRAM) 40 if addrinfo[0] == socket.AF_INET: # IPv4 41 s.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl_bin) 43 s.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_MULTICAST_HOPS, ttl_bin [all...] |
/external/apache-http/src/org/apache/http/impl/ |
SocketHttpClientConnection.java | 36 import java.net.Socket; 49 * network Socket in order to receive and transmit data. 66 private Socket socket = null; field in class:SocketHttpClientConnection 85 final Socket socket, 88 return new SocketInputBuffer(socket, buffersize, params); 92 final Socket socket, 95 return new SocketOutputBuffer(socket, buffersize, params) [all...] |
SocketHttpServerConnection.java | 36 import java.net.Socket; 49 * network Socket in order to receive and transmit data. 66 private Socket socket = null; field in class:SocketHttpServerConnection 85 final Socket socket, 88 return new SocketInputBuffer(socket, buffersize, params); 92 final Socket socket, 95 return new SocketOutputBuffer(socket, buffersize, params) [all...] |
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/core/socket/ |
StubServerSocket.java | 16 package org.mockftpserver.core.socket;
20 import java.net.Socket;
25 * Socket returned by accept(), and the local port for the ServerSocket.
33 private Socket socket;
field in class:StubServerSocket 45 * Construct a new instance with specified local port and accept() socket.
47 * @param socket - the socket to be returned from accept(); if null, then accept() throws SocketTimeoutException.
50 public StubServerSocket(int localPort, Socket socket) throws IOException { [all...] |
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/core/socket/ |
StubServerSocket.java | 16 package org.mockftpserver.core.socket;
20 import java.net.Socket;
25 * Socket returned by accept(), and the local port for the ServerSocket.
33 private Socket socket;
field in class:StubServerSocket 45 * Construct a new instance with specified local port and accept() socket.
47 * @param socket - the socket to be returned from accept(); if null, then accept() throws SocketTimeoutException.
50 public StubServerSocket(int localPort, Socket socket) throws IOException { [all...] |
/system/bt/osi/include/ |
socket.h | 30 typedef void (*socket_cb)(socket_t* socket, void* context); 32 // Returns a new socket object. The socket is in an idle, disconnected state 37 // Returns a new socket object backed by |fd|. The socket object is in whichever 44 // Frees a socket object created by |socket_new| or |socket_accept|. |socket| 45 // may be NULL. If the socket was connected, it will be disconnected. 46 void socket_free(socket_t* socket); 48 // Puts |socket| in listening mode for incoming TCP connections on the specifie [all...] |
/external/syslinux/core/fs/pxe/ |
gpxeurl.c | 6 struct pxe_pvt_inode *socket = PVT(inode); local 9 file_close.FileHandle = socket->tftp_remoteport; 14 * Get a fresh packet from a gPXE socket 20 struct pxe_pvt_inode *socket = PVT(inode); local 25 file_read.FileHandle = socket->tftp_remoteport; 36 memcpy(socket->tftp_pktbuf, packet_buf, file_read.BufferSize); 38 socket->tftp_dataptr = socket->tftp_pktbuf; 39 socket->tftp_bytesleft = file_read.BufferSize; 40 socket->tftp_filepos += file_read.BufferSize 68 struct pxe_pvt_inode *socket = PVT(inode); local [all...] |
/external/webrtc/webrtc/p2p/base/ |
basicpacketsocketfactory.cc | 51 rtc::AsyncSocket* socket = local 54 if (!socket) { 57 if (BindSocket(socket, address, min_port, max_port) < 0) { 59 << socket->GetError(); 60 delete socket; 63 return new rtc::AsyncUDPSocket(socket); 77 rtc::AsyncSocket* socket = local 80 if (!socket) { 84 if (BindSocket(socket, local_address, min_port, max_port) < 0) { 86 << socket->GetError() 111 rtc::AsyncSocket* socket = local [all...] |
/tools/test/connectivity/acts/framework/tests/ |
acts_host_utils_test.py | 17 import socket 29 test_s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) 38 test_s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
/external/curl/docs/cmdline-opts/ |
unix-socket.d | 1 Long: unix-socket 3 Help: Connect through this Unix domain socket 7 Connect through this Unix domain socket, instead of using the network.
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/sockets/ |
unicast.py | 6 from socket import *
8 s = socket(AF_INET, SOCK_DGRAM)
|
unixclient.py | 4 from socket import *
6 FILE = 'unix-socket'
7 s = socket(AF_UNIX, SOCK_STREAM)
|
/external/python/cpython2/Demo/sockets/ |
unicast.py | 6 from socket import * 8 s = socket(AF_INET, SOCK_DGRAM)
|
unixclient.py | 4 from socket import * 6 FILE = 'unix-socket' 7 s = socket(AF_UNIX, SOCK_STREAM)
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/ |
SSLServerSocketTest.java | 39 SSLServerSocket socket = local 41 String[] cipherSuites = new String[] {socket.getSupportedCipherSuites()[0]}; 42 socket.setEnabledCipherSuites(cipherSuites); 43 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(socket.getEnabledCipherSuites())); 48 SSLServerSocket socket = local 50 String[] array = new String[] {socket.getEnabledCipherSuites()[0]}; 52 socket.setEnabledCipherSuites(array); 54 assertEquals(originalFirstElement, socket.getEnabledCipherSuites()[0]); 59 SSLServerSocket socket = local 61 String[] protocols = new String[] {socket.getSupportedProtocols()[0]} 68 SSLServerSocket socket = local [all...] |
/system/bt/osi/src/ |
socket.cc | 21 #include "osi/include/socket.h" 29 #include <sys/socket.h> 55 ret->fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); 57 LOG_ERROR(LOG_TAG, "%s unable to create socket: %s", __func__, 86 void socket_free(socket_t* socket) { 87 if (!socket) return; 89 socket_unregister(socket); 90 close(socket->fd); 91 osi_free(socket); 94 bool socket_listen(const socket_t* socket, port_t port) 223 socket_t* socket = static_cast<socket_t*>(context); local 230 socket_t* socket = static_cast<socket_t*>(context); local [all...] |
/system/core/libcutils/include/cutils/ |
uevent.h | 21 #include <sys/socket.h> 28 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length); 29 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid); 30 ssize_t uevent_kernel_recv(int socket, void *buffer, size_t length, bool require_group, uid_t *uid);
|
/external/apache-http/src/org/apache/http/impl/io/ |
SocketInputBuffer.java | 36 import java.net.Socket; 44 * {@link Socket} bound session input buffer. 59 private final Socket socket; field in class:SocketInputBuffer 62 final Socket socket, 66 if (socket == null) { 67 throw new IllegalArgumentException("Socket may not be null"); 69 this.socket = socket; [all...] |
/external/conscrypt/testing/src/main/java/tests/net/ |
DelegatingSocketFactory.java | 19 import java.net.Socket; 32 * Invoked after obtaining a socket from the delegate and before returning it to the caller. 36 protected Socket configureSocket(Socket socket) throws IOException { 37 return socket; 40 public Socket createSocket() throws IOException { 41 Socket socket = mDelegate.createSocket(); local 42 return configureSocket(socket); 46 Socket socket = mDelegate.createSocket(host, port); local 52 Socket socket = mDelegate.createSocket(host, port, localHost, localPort); local 57 Socket socket = mDelegate.createSocket(host, port); local 63 Socket socket = mDelegate.createSocket(address, port, localAddress, localPort); local [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
DelegatingSocketFactory.java | 20 import java.net.Socket; 26 * overriding {@link #configureSocket(java.net.Socket)}. 37 public Socket createSocket() throws IOException { 38 Socket socket = delegate.createSocket(); local 39 return configureSocket(socket); 43 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { 44 Socket socket = delegate.createSocket(host, port); local 45 return configureSocket(socket); 51 Socket socket = delegate.createSocket(host, port, localAddress, localPort); local 57 Socket socket = delegate.createSocket(host, port); local 64 Socket socket = delegate.createSocket(host, port, localAddress, localPort); local [all...] |
/external/webrtc/webrtc/base/ |
ssladapter.cc | 30 SSLAdapter::Create(AsyncSocket* socket) { 32 return new OpenSSLAdapter(socket); 34 delete socket;
|
/frameworks/support/compat/src/main/java/androidx/core/net/ |
TrafficStatsCompat.java | 26 import java.net.Socket; 34 * Clear active tag used when accounting {@link Socket} traffic originating 45 * Get the active tag used when accounting {@link Socket} traffic originating 47 * {@link #tagSocket(Socket)}. 85 * Set active tag to use when accounting {@link Socket} traffic originating 89 * {@link #tagSocket(Socket)}. 103 * Tag the given {@link Socket} with any statistics parameters active for 105 * parameters. When finished, call {@link #untagSocket(Socket)} to remove 110 * @deprecated Use {@link TrafficStats#tagSocket(Socket)} directly. 113 public static void tagSocket(Socket socket) throws SocketException [all...] |
/libcore/dalvik/src/main/java/dalvik/system/ |
SocketTagger.java | 21 import java.net.Socket; 25 * Callbacks for socket assignment and reassignment. 38 * thread. The socket is either newly connected or reused from a connection 48 * <p><strong>Note:</strong> this method will not be invoked when the socket 53 public final void tag(Socket socket) throws SocketException { 54 if (!socket.isClosed()) { 55 tag(socket.getFileDescriptor$()); 59 public final void untag(Socket socket) throws SocketException [all...] |
/libcore/support/src/test/java/tests/net/ |
DelegatingSocketFactory.java | 21 import java.net.Socket; 38 * Invoked after obtaining a socket from the delegate and before returning it to the caller. 42 protected Socket configureSocket(Socket socket) throws IOException { 43 return socket; 47 public Socket createSocket() throws IOException { 48 Socket socket = mDelegate.createSocket(); local 49 return configureSocket(socket); 54 Socket socket = mDelegate.createSocket(host, port); local 61 Socket socket = mDelegate.createSocket(host, port, localHost, localPort); local 67 Socket socket = mDelegate.createSocket(host, port); local 74 Socket socket = mDelegate.createSocket(address, port, localAddress, localPort); local [all...] |
/system/core/libsysutils/include/sysutils/ |
NetlinkListener.h | 37 NetlinkListener(int socket); 38 NetlinkListener(int socket, int format); 40 NetlinkListener(int socket, int format = NETLINK_FORMAT_ASCII);
|