/external/wpa_supplicant_8/src/utils/ |
H A D | 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 wa [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/utils/ |
H A D | 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 wa [all...] |
/external/v8/tools/testrunner/server/ |
H A D | compression.py | 40 def Send(obj, sock): 48 sock.sendall(payload) 52 def __init__(self, sock): 53 self.sock = sock 74 chunk = self.sock.recv(8192) 83 chunk = self.sock.recv(8192)
|
/external/libvncserver/libvncserver/ |
H A D | sockets.c | 107 #define read(sock,buf,len) recv(sock,buf,len,0) 110 #define write(sock,buf,len) send(sock,buf,len,0) 311 if (FD_ISSET(cl->sock, &(rfbScreen->allFds))) 391 if (FD_ISSET(cl->sock, &(rfbScreen->allFds))) 393 if (FD_ISSET(cl->sock, &fds)) 408 int sock = -1; local 435 if ((sock = accept(chosen_listen_sock, 441 if(!rfbSetNonBlocking(sock)) { 533 int sock; local 572 int sock = cl->sock; local 664 int sock = cl->sock; local 742 int sock = cl->sock; local 858 int sock; local 968 int sock; local 1040 int sock; local 1066 rfbSetNonBlocking(int sock) argument [all...] |
/external/libnl/src/ |
H A D | nl-cls-add.c | 37 struct nl_sock *sock; local 49 sock = nlt_alloc_socket(); 50 nlt_connect(sock, NETLINK_ROUTE); 51 link_cache = nlt_alloc_link_cache(sock); 108 if ((err = rtnl_cls_add(sock, cls, nlflags)) < 0)
|
H A D | nl-cls-list.c | 14 static struct nl_sock *sock; variable in typeref:struct:nl_sock 50 err = rtnl_cls_alloc_cache(sock, ifindex, rtnl_cls_get_parent(cls), 66 sock = nlt_alloc_socket(); 67 nlt_connect(sock, NETLINK_ROUTE); 68 link_cache = nlt_alloc_link_cache(sock);
|
H A D | nl-link-set.c | 15 static struct nl_sock *sock; variable in typeref:struct:nl_sock 58 if ((err = rtnl_link_change(sock, link, change, 0) < 0)) 74 sock = nl_cli_alloc_socket(); 75 nl_cli_connect(sock, NETLINK_ROUTE); 76 link_cache = nl_cli_link_alloc_cache(sock);
|
H A D | nl-neigh-add.c | 46 struct nl_sock *sock; local 55 sock = nl_cli_alloc_socket(); 56 nl_cli_connect(sock, NETLINK_ROUTE); 57 link_cache = nl_cli_link_alloc_cache(sock); 100 if ((err = rtnl_neigh_add(sock, neigh, nlflags)) < 0)
|
H A D | nl-neigh-list.c | 38 struct nl_sock *sock; local 46 sock = nl_cli_alloc_socket(); 47 nl_cli_connect(sock, NETLINK_ROUTE); 48 link_cache = nl_cli_link_alloc_cache(sock); 49 neigh_cache = nl_cli_neigh_alloc_cache(sock);
|
H A D | nl-qdisc-list.c | 39 struct nl_sock *sock; local 47 sock = nl_cli_alloc_socket(); 48 nl_cli_connect(sock, NETLINK_ROUTE); 49 link_cache = nl_cli_link_alloc_cache(sock); 50 qdisc_cache = nl_cli_qdisc_alloc_cache(sock);
|
H A D | nl-addr-delete.c | 15 static struct nl_sock *sock; variable in typeref:struct:nl_sock 59 if ((err = rtnl_addr_delete(sock, addr, 0)) < 0) 76 sock = nl_cli_alloc_socket(); 77 nl_cli_connect(sock, NETLINK_ROUTE); 78 link_cache = nl_cli_link_alloc_cache(sock); 79 addr_cache = nl_cli_addr_alloc_cache(sock);
|
H A D | nl-cls-delete.c | 16 static struct nl_sock *sock; variable in typeref:struct:nl_sock 52 if ((err = rtnl_cls_delete(sock, cls, 0)) < 0) 70 sock = nlt_alloc_socket(); 71 nlt_connect(sock, NETLINK_ROUTE); 72 link_cache = nlt_alloc_link_cache(sock); 121 err = rtnl_cls_alloc_cache(sock, rtnl_cls_get_ifindex(cls),
|
H A D | nl-route-add.c | 54 struct nl_sock *sock; local 62 sock = nl_cli_alloc_socket(); 63 nl_cli_connect(sock, NETLINK_ROUTE); 64 link_cache = nl_cli_link_alloc_cache(sock); 65 route_cache = nl_cli_route_alloc_cache(sock, 0); 123 if ((err = rtnl_route_add(sock, route, 0)) < 0)
|
H A D | nl-tctree-list.c | 17 static struct nl_sock *sock; variable in typeref:struct:nl_sock 55 if (rtnl_cls_alloc_cache(sock, ifindex, parent, &cls_cache) < 0) 74 if (rtnl_cls_alloc_cache(sock, ifindex, parent, &cls_cache) < 0) 91 if (rtnl_class_alloc_cache(sock, ifindex, &class_cache) < 0) 119 sock = nl_cli_alloc_socket(); 120 nl_cli_connect(sock, NETLINK_ROUTE); 121 link_cache = nl_cli_link_alloc_cache(sock); 122 qdisc_cache = nl_cli_qdisc_alloc_cache(sock);
|
/external/libvncserver/examples/ |
H A D | repeater.c | 13 int repeaterPort, sock; local 46 sock = rfbConnectToTcpAddr(repeaterHost, repeaterPort); 47 if (sock < 0) { 51 if (write(sock, id, sizeof(id)) != sizeof(id)) { 55 cl = rfbNewClient(server, sock);
|
/external/apache-http/src/org/apache/http/impl/conn/ |
H A D | DefaultClientConnectionOperator.java | 145 Socket sock = plain_sf.createSocket(); 146 conn.opening(sock, target); 149 Socket connsock = plain_sf.connectSocket(sock, 153 if (sock != connsock) { 154 sock = connsock; 155 conn.opening(sock, target); 168 prepareSocket(sock, context, params); 170 Socket layeredsock = layered_sf.createSocket(sock, 174 if (layeredsock != sock) { 179 conn.openCompleted(sf.isSecure(sock), param 262 prepareSocket(Socket sock, HttpContext context, HttpParams params) argument [all...] |
/external/wpa_supplicant_8/hostapd/src/drivers/ |
H A D | linux_ioctl.c | 18 int linux_set_iface_flags(int sock, const char *ifname, int dev_up) argument 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) argument 63 if (sock < 0) 69 if (ioctl(sock, SIOCGIFFLAGS, &ifr) != 0) { 80 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr) argument 86 if (ioctl(sock, SIOCGIFHWADDR, &ifr)) { 103 int linux_set_ifhwaddr(int sock, cons argument 136 linux_br_add(int sock, const char *brname) argument 148 linux_br_del(int sock, const char *brname) argument 160 linux_br_add_if(int sock, const char *brname, const char *ifname) argument 182 linux_br_del_if(int sock, const char *brname, const char *ifname) argument [all...] |
/external/wpa_supplicant_8/src/drivers/ |
H A D | linux_ioctl.c | 18 int linux_set_iface_flags(int sock, const char *ifname, int dev_up) argument 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) argument 63 if (sock < 0) 69 if (ioctl(sock, SIOCGIFFLAGS, &ifr) != 0) { 80 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr) argument 86 if (ioctl(sock, SIOCGIFHWADDR, &ifr)) { 103 int linux_set_ifhwaddr(int sock, cons argument 136 linux_br_add(int sock, const char *brname) argument 148 linux_br_del(int sock, const char *brname) argument 160 linux_br_add_if(int sock, const char *brname, const char *ifname) argument 182 linux_br_del_if(int sock, const char *brname, const char *ifname) argument [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/ |
H A D | linux_ioctl.c | 18 int linux_set_iface_flags(int sock, const char *ifname, int dev_up) argument 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) argument 63 if (sock < 0) 69 if (ioctl(sock, SIOCGIFFLAGS, &ifr) != 0) { 80 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr) argument 86 if (ioctl(sock, SIOCGIFHWADDR, &ifr)) { 103 int linux_set_ifhwaddr(int sock, cons argument 136 linux_br_add(int sock, const char *brname) argument 148 linux_br_del(int sock, const char *brname) argument 160 linux_br_add_if(int sock, const char *brname, const char *ifname) argument 182 linux_br_del_if(int sock, const char *brname, const char *ifname) argument [all...] |
/external/autotest/client/cros/netprotos/ |
H A D | fake_host.py | 26 sock = FakeSocket(self, family, sock_type) 27 self._sockets.append(sock) 28 return sock
|
/external/libnl/tests/ |
H A D | test-nf-cache-mngr.c | 27 struct nl_sock *sock; local 30 sock = nlt_socket_alloc(); 32 mngr = nl_cache_mngr_alloc(sock, NETLINK_NETFILTER, NL_AUTO_PROVIDE);
|
/external/boringssl/src/crypto/bio/ |
H A D | socket_helper.c | 84 int bio_socket_nbio(int sock, int on) { argument 88 return 0 == ioctlsocket(sock, FIONBIO, &arg); 90 int flags = fcntl(sock, F_GETFL, 0); 99 return fcntl(sock, F_SETFL, flags) == 0; 105 int bio_sock_error(int sock) { argument 109 if (getsockopt(sock, SOL_SOCKET, SO_ERROR, (char *)&error, &error_size) < 0) {
|
/external/toybox/toys/other/ |
H A D | nbd_client.c | 42 int sock = -1, nbd, flags; local 55 sock = xconnect(host, port, AF_UNSPEC, SOCK_STREAM, 0, 0); 57 setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, &temp, sizeof(int)); 61 xreadall(sock, toybuf, 152); 77 if (ioctl(nbd, NBD_SET_SOCK, sock) < 0) break; 107 close(sock);
|
/external/apache-http/src/org/apache/http/conn/ |
H A D | OperatedClientConnection.java | 126 * @param sock the unconnected socket which is about to 130 void opening(Socket sock, HttpHost target) argument 163 * @param sock the new socket for communicating with the target host, 173 void update(Socket sock, HttpHost target, argument
|
/external/dnsmasq/contrib/dynamic-dnsmasq/ |
H A D | dynamic-dnsmasq.pl | 94 my $sock = IO::Socket::INET->new(Listen => 5, 99 while ( my $client = $sock->accept() ) { 177 my $sock = shift; 180 print $sock "HTTP/1.0 200 OK\n"; 182 print $sock "Date: $tmp[0], $tmp[2] $tmp[1] $tmp[4] $tmp[3] GMT\n"; 183 print $sock "Server: Peter's Fake DynDNS.org Server/1.0\n"; 184 print $sock "Content-Type: text/plain; charset=ISO-8859-1\n"; 185 print $sock "Connection: close\n"; 186 print $sock "Transfer-Encoding: chunked\n"; 187 print $sock "\ [all...] |