/external/wpa_supplicant_8/src/drivers/ |
linux_ioctl.h | 12 int linux_set_iface_flags(int sock, const char *ifname, int dev_up); 13 int linux_iface_up(int sock, const char *ifname); 14 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr); 15 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr); 16 int linux_br_add(int sock, const char *brname); 17 int linux_br_del(int sock, const char *brname); 18 int linux_br_add_if(int sock, const char *brname, const char *ifname); 19 int linux_br_del_if(int sock, const char *brname, const char *ifname);
|
linux_ioctl.c | 18 int linux_set_iface_flags(int sock, const char *ifname, int dev_up) 23 if (sock < 0) 29 if (ioctl(sock, SIOCGIFFLAGS, &ifr) != 0) { 46 if (ioctl(sock, SIOCSIFFLAGS, &ifr) != 0) { 58 int linux_iface_up(int sock, const char *ifname) 63 if (sock < 0) 69 if (ioctl(sock, SIOCGIFFLAGS, &ifr) != 0) { 80 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr) 86 if (ioctl(sock, SIOCGIFHWADDR, &ifr)) { 103 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_timeout.py | 17 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 20 self.sock.close() 24 self.assertEqual(self.sock.gettimeout(), None, 29 self.sock.settimeout(7.345) 30 self.assertEqual(self.sock.gettimeout(), 7.345) 32 self.sock.settimeout(3) 33 self.assertEqual(self.sock.gettimeout(), 3) 35 self.sock.settimeout(None) 36 self.assertEqual(self.sock.gettimeout(), None) 40 self.sock.settimeout(1 [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_timeout.py | 17 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 20 self.sock.close() 24 self.assertEqual(self.sock.gettimeout(), None, 29 self.sock.settimeout(7.345) 30 self.assertEqual(self.sock.gettimeout(), 7.345) 32 self.sock.settimeout(3) 33 self.assertEqual(self.sock.gettimeout(), 3) 35 self.sock.settimeout(None) 36 self.assertEqual(self.sock.gettimeout(), None) 40 self.sock.settimeout(1 [all...] |
/external/chromium_org/chrome/test/chromedriver/net/ |
sync_websocket_impl_unittest.cc | 51 SyncWebSocketImpl sock(context_getter_.get()); 55 SyncWebSocketImpl sock(context_getter_.get()); 56 ASSERT_TRUE(sock.Connect(server_.web_socket_url())); 60 SyncWebSocketImpl sock(context_getter_.get()); 61 ASSERT_FALSE(sock.Connect(GURL("ws://127.0.0.1:33333"))); 65 SyncWebSocketImpl sock(context_getter_.get()); 66 ASSERT_TRUE(sock.Connect(server_.web_socket_url())); 67 ASSERT_TRUE(sock.Send("hi")); 71 sock.ReceiveNextMessage(&message, long_timeout_)); 76 SyncWebSocketImpl sock(context_getter_.get()) [all...] |
/external/kernel-headers/original/linux/ |
net.h | 113 struct sock *sk; 128 int (*release) (struct socket *sock); 129 int (*bind) (struct socket *sock, 132 int (*connect) (struct socket *sock, 137 int (*accept) (struct socket *sock, 139 int (*getname) (struct socket *sock, 142 unsigned int (*poll) (struct file *file, struct socket *sock, 144 int (*ioctl) (struct socket *sock, unsigned int cmd, 146 int (*compat_ioctl) (struct socket *sock, unsigned int cmd, 148 int (*listen) (struct socket *sock, int len) [all...] |
/device/generic/goldfish/libqemu/ |
test_host_2.c | 47 socket_close(int sock) 50 close(sock); 60 int sock = socket(AF_INET, type, 0); local 61 if (sock < 0) { 71 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &n, sizeof(n)); 73 if (TFR(bind(sock, (struct sockaddr*)&addr, sizeof(addr))) < 0) { 74 socket_close(sock); 79 if (TFR(listen(sock, 4)) < 0) { 80 socket_close(sock); 85 return sock; 91 int sock, client; local [all...] |
test_host_1.c | 49 socket_close(int sock) 52 close(sock); 62 int sock = socket(AF_INET, type, 0); local 63 if (sock < 0) { 73 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &n, sizeof(n)); 75 if (TFR(bind(sock, (struct sockaddr*)&addr, sizeof(addr))) < 0) { 76 socket_close(sock); 81 if (TFR(listen(sock, 4)) < 0) { 82 socket_close(sock); 87 return sock; 95 int sock = socket(AF_UNIX, type, 0); local 144 int sock, client; local [all...] |
/external/chromium_org/third_party/tlslite/tlslite/integration/ |
POP3_TLS.py | 111 self.sock = None 115 self.sock = socket.socket(af, socktype, proto) 116 self.sock.connect(sa) 118 if self.sock: 119 self.sock.close() 120 self.sock = None 123 if not self.sock: 135 self.sock = TLSConnection(self.sock) 136 self.sock.closeSocket = Tru [all...] |
IMAP4_TLS.py | 127 self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 128 self.sock.connect((host, port)) 129 self.sock = TLSConnection(self.sock) 130 self.sock.closeSocket = True 131 ClientHelper._handshake(self, self.sock) 132 self.file = self.sock.makefile('rb'
|
HTTPTLSConnection.py | 23 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 24 if hasattr(sock, 'settimeout'): 25 sock.settimeout(10) 26 sock.connect((self.host, self.port)) 29 self.sock = TLSConnection(sock) 32 self.sock.closeSocket = True 33 self._handshake(self.sock)
|
TLSSocketServerMixIn.py | 50 def finish_request(self, sock, client_address): 51 tlsConnection = TLSConnection(sock)
|
/external/qemu/android/protocol/ |
fb-updates-proxy.h | 27 * sock - Socket descriptor for the service 35 ProxyFramebuffer* proxyFb_create(int sock, const char* protocol);
|
/external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/tcp/ |
SocketConnector.java | 57 private Socket sock; field in class:SocketConnector 66 this.sock = new Socket(address, port); 67 remoteAddress = sock.getRemoteSocketAddress(); // for info purposes 71 sock.setTcpNoDelay(true); 73 in = sock.getInputStream(); 74 out = sock.getOutputStream(); 81 if( sock == null ) 87 if( sock == null ) 89 return sock.isConnected(); 96 Socket temp = sock; [all...] |
/packages/apps/Nfc/src/com/android/nfc/handover/ |
HandoverClient.java | 53 LlcpSocket sock = null; local 55 sock = service.createLlcpSocket(0, MIU, 1, 1024); 65 sock.connectToService(HandoverServer.HANDOVER_SERVICE_NAME); 67 if (sock != null) { 69 sock.close(); 80 mSocket = sock; 101 LlcpSocket sock = null; 106 sock = mSocket; 113 int remoteMiu = sock.getRemoteMiu(); 119 sock.send(tmpBuffer) [all...] |
/system/vold/ |
vdc.c | 36 static int do_monitor(int sock, int stop_after_cmd); 37 static int do_cmd(int sock, int argc, char **argv); 40 int sock; local 45 if ((sock = socket_local_client("vold", 53 exit(do_monitor(sock, 0)); 54 exit(do_cmd(sock, argc, argv)); 57 static int do_cmd(int sock, int argc, char **argv) { 76 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) { 81 return do_monitor(sock, 1); 84 static int do_monitor(int sock, int stop_after_cmd) [all...] |
/external/apache-http/src/org/apache/http/conn/scheme/ |
PlainSocketFactory.java | 84 public Socket connectSocket(Socket sock, String host, int port, 96 if (sock == null) 97 sock = createSocket(); 107 sock.bind(isa); 119 sock.connect(remoteAddress, timeout); 123 return sock; 133 * @param sock the connected socket 139 public final boolean isSecure(Socket sock) 142 if (sock == null) { 148 if (sock.getClass() != Socket.class) [all...] |
/external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/udp/ |
UdpConnector.java | 52 private DatagramSocket sock = new DatagramSocket(); field in class:UdpConnector 70 this.sock = new DatagramSocket( localSocketAddress ); 74 sock.connect( remoteAddress ); 81 if( sock == null ) 87 if( sock == null ) 89 return sock.isConnected(); 95 DatagramSocket temp = sock; 96 sock = null; 120 sock.receive(packet); 140 sock.send(p) [all...] |
/packages/apps/Nfc/src/com/android/nfc/ndefpush/ |
NdefPushClient.java | 55 LlcpSocket sock = null; local 58 sock = service.createLlcpSocket(0, MIU, 1, 1024); 67 sock.connectToService(NdefPushServer.SERVICE_NAME); 69 if (sock != null) { 71 sock.close(); 83 mSocket = sock; 89 LlcpSocket sock = null; local 95 sock = mSocket; 104 remoteMiu = sock.getRemoteMiu(); 110 sock.send(tmpBuffer) [all...] |
/device/generic/goldfish/opengl/shared/OpenglCodecCommon/ |
UnixStream.h | 28 UnixStream(int sock, size_t bufSize);
|
/external/qemu/block/ |
nbd.c | 37 int sock; member in struct:BDRVNBDState 47 int sock; local 60 sock = unix_socket_outgoing(unixpath); 79 sock = tcp_socket_outgoing(hostname, port); 82 if (sock == -1) 85 ret = nbd_receive_negotiate(sock, &size, &blocksize); 89 s->sock = sock; 108 if (nbd_send_request(s->sock, &request) == -1) 111 if (nbd_receive_reply(s->sock, &reply) == -1 [all...] |
/sdk/emulator/opengl/shared/OpenglCodecCommon/ |
UnixStream.h | 28 UnixStream(int sock, size_t bufSize);
|
/art/jdwpspy/ |
Net.cpp | 39 int sock; member in struct:Peer 234 netState->dbg.sock = netState->vm.sock = -1; 313 int dbgSock = netState->dbg.sock; 314 int vmSock = netState->vm.sock; 318 netState->listenSock = netState->dbg.sock = netState->vm.sock = -1; 367 int sock; local 372 assert(netState->dbg.sock < 0); /* must not already be talking */ 376 sock = accept(netState->listenSock, (sockaddr*) &addr, &addrlen) 687 int sock = -1; local [all...] |
/external/apache-http/src/org/apache/http/conn/ |
MultihomePlainSocketFactory.java | 90 * @param sock socket to connect to any of the given addresses 100 public Socket connectSocket(Socket sock, String host, int port, 112 if (sock == null) 113 sock = createSocket(); 123 sock.bind(isa); 136 sock.connect(new InetSocketAddress(address, port), timeout); 142 sock = new Socket(); 150 return sock; 159 * @param sock the connected socket 165 public final boolean isSecure(Socket sock) [all...] |
/external/wpa_supplicant_8/src/utils/ |
eloop.h | 39 * @sock: File descriptor number for the socket 43 typedef void (*eloop_sock_handler)(int sock, void *eloop_ctx, void *sock_ctx); 78 * @sock: File descriptor number for the socket 90 int eloop_register_read_sock(int sock, eloop_sock_handler handler, 95 * @sock: File descriptor number for the socket 100 void eloop_unregister_read_sock(int sock); 104 * @sock: File descriptor number for the socket 117 int eloop_register_sock(int sock, eloop_event_type type, 123 * @sock: File descriptor number for the socket 124 * @type: Type of event for which sock was registere [all...] |