HomeSort by relevance Sort by last modified time
    Searched defs:sock (Results 76 - 100 of 194) sorted by null

1 2 34 5 6 7 8

  /external/bluetooth/bluez/src/
sdpd-database.c 100 int sock; member in struct:_indexed
109 void sdp_svcdb_collect_all(int sock)
115 if (item->sock == sock) {
126 } else if (item->sock > sock)
157 return s1->sock - s2->sock;
160 void sdp_svcdb_set_collectable(sdp_record_t *record, int sock)
163 item->sock = sock
    [all...]
  /external/clang/test/Analysis/
taint-generic.c 162 int sock; local
165 sock = socket(AF_INET, SOCK_STREAM, 0);
166 read(sock, buffer, 100);
169 sock = socket(AF_LOCAL, SOCK_STREAM, 0);
170 read(sock, buffer, 100);
  /external/dropbear/
dbutil.c 156 static void set_sock_priority(int sock) {
162 setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void*)&val, sizeof(val));
168 setsockopt(sock, IPPROTO_IP, IP_TOS, (void*)&val, sizeof(val));
175 setsockopt(sock, SOL_SOCKET, SO_PRIORITY, (void*) &val, sizeof(val));
194 int sock; local
241 sock = socks[nsock]; /* For clarity */
243 if (sock < 0) {
252 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (void*) &val, sizeof(val));
255 setsockopt(sock, SOL_SOCKET, SO_LINGER, (void*)&linger, sizeof(linger));
257 set_sock_priority(sock);
307 int sock; local
    [all...]
  /external/openssh/
authfd.c 98 int sock; local
109 sock = socket(AF_UNIX, SOCK_STREAM, 0);
110 if (sock < 0)
114 if (fcntl(sock, F_SETFD, FD_CLOEXEC) == -1) {
115 close(sock);
118 if (connect(sock, (struct sockaddr *)&sunaddr, sizeof sunaddr) < 0) {
119 close(sock);
123 return sock;
180 ssh_close_authentication_socket(int sock)
183 close(sock);
198 int sock; local
    [all...]
  /external/openssl/apps/
s_socket.c 105 static int init_client_ip(int *sock,unsigned char ip[4], int port, int type);
106 static int init_server(int *sock, int port, int type);
107 static int init_server_long(int *sock, int port,char *ip, int type);
108 static int do_accept(int acc_sock, int *sock, char **host);
237 int init_client(int *sock, char *host, int port, int type)
244 return init_client_ip(sock,ip,port,type);
247 static int init_client_ip(int *sock, unsigned char ip[4], int port, int type)
283 *sock=s;
289 int sock; local
305 if (do_accept(accept_socket,&sock,&name) == 0
    [all...]
  /external/qemu/proxy/
proxy_common.c 541 int sock; local
549 sock = socket_create(addr.family, SOCKET_STREAM);
550 if (sock < 0) {
555 socket_set_nonblock(sock);
558 if (socket_connect(sock, &addr) == 0) {
561 socket_close(sock);
567 iolooper_add_write(looper, sock);
572 socket_close(sock);
  /external/qemu/
qemu-sockets-android.c 194 int sock, nn; local
229 sock = socket_create(sock_address_get_family(e), SOCKET_STREAM);
230 if (sock < 0) {
235 socket_set_xreuseaddr(sock);
238 if (socket_connect(sock,e) < 0) {
243 socket_close(sock);
253 sock = -1;
256 return sock;
269 int sock = -1; local
327 sock = socket_create(sock_address_get_family(e), SOCKET_DGRAM)
448 int sock = -1; local
475 int sock = -1; local
491 int sock, fd; local
532 int ret, sock; local
559 int sock, len; local
587 int sock; local
    [all...]
qemu-sockets.c 239 int sock,rc; local
281 sock = qemu_socket(e->ai_family, e->ai_socktype, e->ai_protocol);
282 if (sock < 0) {
287 setsockopt(sock,SOL_SOCKET,SO_REUSEADDR,(void*)&on,sizeof(on));
290 if (connect(sock,e->ai_addr,e->ai_addrlen) < 0) {
295 closesocket(sock);
303 return sock;
316 int sock = -1, rc; local
374 sock = qemu_socket(peer->ai_family, peer->ai_socktype, peer->ai_protocol);
375 if (sock < 0)
503 int sock = -1; local
530 int sock = -1; local
545 int sock, fd; local
595 int sock; local
626 int sock, len; local
654 int sock; local
    [all...]
  /external/srtp/test/
rtpw.c 115 leave_group(int sock, struct ip_mreq mreq, char *name);
129 int sock, ret; local
257 sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
258 if (sock < 0) {
275 ret = setsockopt(sock, IPPROTO_IP, IP_MULTICAST_TTL, &ttl,
286 ret = setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, (void*)&mreq,
399 ret = bind(sock, (struct sockaddr *) &local, sizeof(struct sockaddr_in));
413 rtp_sender_init(snd, sock, name, ssrc);
427 leave_group(sock, mreq, argv[0]);
448 if (bind(sock, (struct sockaddr *)&name, sizeof(name)) < 0)
    [all...]
  /external/wpa_supplicant_6/wpa_supplicant/
ctrl_iface_udp.c 48 int sock; member in struct:ctrl_iface_priv
152 static void wpa_supplicant_ctrl_iface_receive(int sock, void *eloop_ctx,
166 res = recvfrom(sock, buf, sizeof(buf) - 1, 0,
244 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from,
248 sendto(sock, "FAIL\n", 5, 0, (struct sockaddr *) &from,
251 sendto(sock, "OK\n", 3, 0, (struct sockaddr *) &from,
280 priv->sock = -1;
286 priv->sock = socket(PF_INET, SOCK_DGRAM, 0);
287 if (priv->sock < 0) {
296 if (bind(priv->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0)
407 int sock; member in struct:ctrl_iface_global_priv
    [all...]
ctrl_iface_unix.c 51 int sock; member in struct:ctrl_iface_priv
141 static void wpa_supplicant_ctrl_iface_receive(int sock, void *eloop_ctx,
154 res = recvfrom(sock, buf, sizeof(buf) - 1, 0,
186 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from,
190 sendto(sock, "FAIL\n", 5, 0, (struct sockaddr *) &from,
193 sendto(sock, "OK\n", 3, 0, (struct sockaddr *) &from,
281 priv->sock = -1;
292 priv->sock = android_get_control_socket(addr.sun_path);
293 if (priv->sock >= 0)
359 priv->sock = socket(PF_UNIX, SOCK_DGRAM, 0)
609 int sock; member in struct:ctrl_iface_global_priv
    [all...]
  /external/wpa_supplicant_6/wpa_supplicant/src/drivers/
driver_atmel.c 54 int sock; member in struct:wpa_driver_atmel_data
112 if (ioctl(drv->sock, ATMEL_WPA_IOCTL, &iwr) < 0) {
135 if (ioctl(drv->sock, ATMEL_WPA_IOCTL_PARAM, &iwr) < 0) {
469 drv->sock = socket(PF_INET, SOCK_DGRAM, 0);
470 if (drv->sock < 0) {
484 close(drv->sock);
driver_madwifi.c 55 int sock; member in struct:wpa_driver_madwifi_data
82 if (ioctl(drv->sock, op, &iwr) < 0) {
165 if (ioctl(drv->sock, IEEE80211_IOCTL_SETPARAM, &iwr) < 0) {
185 if (ioctl(drv->sock, IEEE80211_IOCTL_SETOPTIE, &iwr) < 0) {
441 if (ioctl(drv->sock, SIOCSIWSCAN, &iwr) < 0) {
527 drv->sock = socket(PF_INET, SOCK_DGRAM, 0);
528 if (drv->sock < 0)
546 close(drv->sock);
578 close(drv->sock);
driver_ndiswrapper.c 32 int sock; member in struct:wpa_driver_ndiswrapper_data
82 int sock; local
85 sock = socket(families[i], SOCK_DGRAM, 0);
86 if (sock >= 0)
87 return sock;
97 return ioctl(drv->sock, request, pwrq);
330 drv->sock = get_socket();
331 if (drv->sock < 0) {
345 close(drv->sock);
  /external/wpa_supplicant_6/wpa_supplicant/src/utils/
eloop_none.c 22 int sock; member in struct:eloop_sock
25 void (*handler)(int sock, void *eloop_ctx, void *sock_ctx);
71 int eloop_register_read_sock(int sock,
72 void (*handler)(int sock, void *eloop_ctx,
84 tmp[eloop.reader_count].sock = sock;
90 if (sock > eloop.max_sock)
91 eloop.max_sock = sock;
98 void eloop_unregister_read_sock(int sock)
106 if (eloop.readers[i].sock == sock
    [all...]
eloop_win.c 23 int sock; member in struct:eloop_sock
120 int eloop_register_read_sock(int sock, eloop_sock_handler handler,
135 if (WSAEventSelect(sock, event, FD_READ)) {
143 WSAEventSelect(sock, event, 0);
148 tmp[eloop.reader_count].sock = sock;
155 if (sock > eloop.max_sock)
156 eloop.max_sock = sock;
163 void eloop_unregister_read_sock(int sock)
171 if (eloop.readers[i].sock == sock
    [all...]
  /external/wpa_supplicant_6/wpa_supplicant/src/wps/
wps_upnp_ssdp.c 820 int sock = -1; local
828 sock = socket(AF_INET, SOCK_DGRAM, 0);
829 if (sock < 0)
842 if (ioctl(sock, SIOCADDRT, &rt) < 0) {
857 if (sock >= 0)
858 close(sock);
  /external/wpa_supplicant_8/src/utils/
eloop_none.c 16 int sock; member in struct:eloop_sock
19 void (*handler)(int sock, void *eloop_ctx, void *sock_ctx);
62 int eloop_register_read_sock(int sock,
63 void (*handler)(int sock, void *eloop_ctx,
75 tmp[eloop.reader_count].sock = sock;
81 if (sock > eloop.max_sock)
82 eloop.max_sock = sock;
89 void eloop_unregister_read_sock(int sock)
97 if (eloop.readers[i].sock == sock
    [all...]
eloop_win.c 17 int sock; member in struct:eloop_sock
111 int eloop_register_read_sock(int sock, eloop_sock_handler handler,
126 if (WSAEventSelect(sock, event, FD_READ)) {
134 WSAEventSelect(sock, event, 0);
139 tmp[eloop.reader_count].sock = sock;
146 if (sock > eloop.max_sock)
147 eloop.max_sock = sock;
154 void eloop_unregister_read_sock(int sock)
162 if (eloop.readers[i].sock == sock
    [all...]
  /external/wpa_supplicant_8/wpa_supplicant/
ctrl_iface_udp.c 42 int sock; member in struct:ctrl_iface_priv
146 static void wpa_supplicant_ctrl_iface_receive(int sock, void *eloop_ctx,
160 res = recvfrom(sock, buf, sizeof(buf) - 1, 0,
238 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from,
242 sendto(sock, "FAIL\n", 5, 0, (struct sockaddr *) &from,
245 sendto(sock, "OK\n", 3, 0, (struct sockaddr *) &from,
274 priv->sock = -1;
280 priv->sock = socket(PF_INET, SOCK_DGRAM, 0);
281 if (priv->sock < 0) {
290 if (bind(priv->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0)
401 int sock; member in struct:ctrl_iface_global_priv
    [all...]
ctrl_iface_unix.c 46 int sock; member in struct:ctrl_iface_priv
127 static void wpa_supplicant_ctrl_iface_receive(int sock, void *eloop_ctx,
140 res = recvfrom(sock, buf, sizeof(buf) - 1, 0,
201 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from,
205 sendto(sock, "FAIL\n", 5, 0, (struct sockaddr *) &from,
208 sendto(sock, "OK\n", 3, 0, (struct sockaddr *) &from,
297 priv->sock = -1;
308 priv->sock = android_get_control_socket(addr.sun_path);
309 if (priv->sock >= 0)
375 priv->sock = socket(PF_UNIX, SOCK_DGRAM, 0)
624 int sock; member in struct:ctrl_iface_global_priv
    [all...]
  /dalvik/vm/jdwp/
JdwpAdb.cpp 574 int sock = receiveClientFd(netState); local
575 if (sock >= 0) {
577 close(sock);
JdwpSocket.cpp 278 static bool isFdReadable(int sock)
285 FD_SET(sock, &readfds);
289 count = select(sock+1, &readfds, NULL, NULL, &tv);
293 if (FD_ISSET(sock, &readfds)) /* make sure it's our fd */
348 int sock; local
357 sock = accept(netState->listenSock, &addr.addrPlain, &addrlen);
358 if (sock < 0 && errno != EINTR) {
367 } while (sock < 0);
374 netState->clientSock = sock;
  /external/bluetooth/bluez/audio/
gateway.c 386 int sock; local
389 sock = g_io_channel_unix_get_fd(gw->rfcomm);
390 shutdown(sock, SHUT_RDWR);
  /external/bluetooth/bluez/lib/bluetooth/
bnep.h 125 int sock; /* Connected socket */ member in struct:bnep_connadd_req

Completed in 946 milliseconds

1 2 34 5 6 7 8