Searched refs:sock (Results 26 - 50 of 407) sorted by relevance

1234567891011>>

/external/wpa_supplicant_8/src/utils/
H A Deloop.h39 * @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 Deloop.h39 * @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 Dcompression.py40 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 Dsockets.c107 #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 Dnl-cls-add.c37 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 Dnl-cls-list.c14 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 Dnl-link-set.c15 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 Dnl-neigh-add.c46 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 Dnl-neigh-list.c38 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 Dnl-qdisc-list.c39 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 Dnl-addr-delete.c15 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 Dnl-cls-delete.c16 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 Dnl-route-add.c54 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 Dnl-tctree-list.c17 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 Drepeater.c13 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 DDefaultClientConnectionOperator.java145 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 Dlinux_ioctl.c18 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 Dlinux_ioctl.c18 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 Dlinux_ioctl.c18 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 Dfake_host.py26 sock = FakeSocket(self, family, sock_type)
27 self._sockets.append(sock)
28 return sock
/external/libnl/tests/
H A Dtest-nf-cache-mngr.c27 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 Dsocket_helper.c84 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 Dnbd_client.c42 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 DOperatedClientConnection.java126 * @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 Ddynamic-dnsmasq.pl94 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...]

Completed in 1670 milliseconds

1234567891011>>