/external/toybox/toys/pending/ |
route.c | 207 struct sockaddr sock; local 212 get_hostname(*netmask, (struct sockaddr_in *) &sock); 213 rt->rt_genmask = sock;
|
/external/webrtc/talk/media/sctp/ |
sctpdataengine_unittest.cc | 503 struct socket *sock = const_cast<struct socket*>(channel1()->socket()); local 505 cricket::SctpDataEngine::SendThresholdCallback(sock, 0);
|
/external/wpa_supplicant_8/src/utils/ |
eloop_win.c | 18 int sock; member in struct:eloop_sock 113 int eloop_register_read_sock(int sock, eloop_sock_handler handler, 128 if (WSAEventSelect(sock, event, FD_READ)) { 136 WSAEventSelect(sock, event, 0); 141 tmp[eloop.reader_count].sock = sock; 148 if (sock > eloop.max_sock) 149 eloop.max_sock = sock; 156 void eloop_unregister_read_sock(int sock) 164 if (eloop.readers[i].sock == sock [all...] |
eloop.c | 43 int sock; member in struct:eloop_sock 194 static int eloop_sock_queue(int sock, eloop_event_type type) 215 ev.data.fd = sock; 216 if (epoll_ctl(eloop.epollfd, EPOLL_CTL_ADD, sock, &ev) < 0) { 218 __func__, sock, strerror(errno)); 227 static int eloop_sock_queue(int sock, eloop_event_type type) 242 EV_SET(&ke, sock, filter, EV_ADD, 0, 0, 0); 245 __func__, sock, strerror(errno)); 254 int sock, eloop_sock_handler handler, 270 if (sock > eloop.max_sock [all...] |
/external/wpa_supplicant_8/src/wps/ |
wps_upnp_ssdp.c | 805 int sock = -1; local 813 sock = socket(AF_INET, SOCK_DGRAM, 0); 814 if (sock < 0) 827 if (ioctl(sock, SIOCADDRT, &rt) < 0) { 842 if (sock >= 0) 843 close(sock);
|
wps_upnp.c | 899 int sock = -1; local 907 sock = socket(AF_INET, SOCK_DGRAM, 0); 908 if (sock < 0) 912 if (ioctl(sock, SIOCGIFADDR, &req) < 0) { 924 if (ioctl(sock, SIOCGIFHWADDR, &req) < 0) { 939 close(sock); 943 if (sock >= 0) 944 close(sock); [all...] |
/external/wpa_supplicant_8/wpa_supplicant/ |
ctrl_iface_unix.c | 36 int sock; member in struct:ctrl_iface_priv 46 int sock; member in struct:ctrl_iface_global_priv 64 const char *ifname, int sock, 76 static void wpas_ctrl_sock_debug(const char *title, int sock, const char *buf, 89 if (getsockopt(sock, SOL_SOCKET, SO_SNDBUF, &sndbuf, &optlen) < 0) 92 if (ioctl(sock, TIOCOUTQ, &outq) < 0) 96 "CTRL-DEBUG: %s: sock=%d sndbuf=%d outq=%d send_len=%d", 97 title, sock, sndbuf, outq, (int) len); 129 static void wpa_supplicant_ctrl_iface_receive(int sock, void *eloop_ctx, 142 res = recvfrom(sock, buf, sizeof(buf) - 1, 0 351 int sock = -1, gsock = -1; local [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
ftplib.py | 104 sock = None variable in class:FTP 132 self.sock = socket.create_connection((self.host, self.port), self.timeout) 133 self.af = self.sock.family 134 self.file = self.sock.makefile('rb') 173 self.sock.sendall(line) 236 self.sock.sendall(line, MSG_OOB) 277 sock = None 281 sock = socket.socket(af, socktype, proto) 282 sock.bind(sa) 284 if sock [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ |
ftplib.py | 104 sock = None variable in class:FTP 132 self.sock = socket.create_connection((self.host, self.port), self.timeout) 133 self.af = self.sock.family 134 self.file = self.sock.makefile('rb') 173 self.sock.sendall(line) 236 self.sock.sendall(line, MSG_OOB) 277 sock = None 281 sock = socket.socket(af, socktype, proto) 282 sock.bind(sa) 284 if sock [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
ftplib.py | 104 sock = None variable in class:FTP 132 self.sock = socket.create_connection((self.host, self.port), self.timeout) 133 self.af = self.sock.family 134 self.file = self.sock.makefile('rb') 173 self.sock.sendall(line) 236 self.sock.sendall(line, MSG_OOB) 277 sock = None 281 sock = socket.socket(af, socktype, proto) 282 sock.bind(sa) 284 if sock [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
ftplib.py | 104 sock = None variable in class:FTP 132 self.sock = socket.create_connection((self.host, self.port), self.timeout) 133 self.af = self.sock.family 134 self.file = self.sock.makefile('rb') 173 self.sock.sendall(line) 236 self.sock.sendall(line, MSG_OOB) 277 sock = None 281 sock = socket.socket(af, socktype, proto) 282 sock.bind(sa) 284 if sock [all...] |
/system/core/liblog/tests/ |
liblog_benchmark.cpp | 895 int sock = socket_local_client("logd", ANDROID_SOCKET_NAMESPACE_RESERVED, local 897 if (sock < 0) return; 900 ssize_t ret = TEMP_FAILURE_RETRY(write(sock, buf, writeLen)); 902 close(sock); 905 while ((ret = read(sock, buf, len)) > 0) { 912 struct pollfd p = {.fd = sock, .events = POLLIN, .revents = 0 }; 919 close(sock);
|
/external/curl/lib/ |
connect.c | 166 curl_socket_t *sock); 245 struct sockaddr *sock = (struct sockaddr *)&sa; /* bind to this address */ local 246 curl_socklen_t sizeof_sa = 0; /* size of the data sock points to */ 433 if(bind(sockfd, sock, sizeof_sa) >= 0) { 453 if(sock->sa_family == AF_INET) 786 conn->sock[sockindex] = conn->tempsock[i]; 806 Curl_updateconninfo(conn, conn->sock[sockindex]); 974 * Note that even on connect fail it returns CURLE_OK, but with 'sock' set to [all...] |
imap.c | 1256 curl_socket_t sock = conn->sock[FIRSTSOCKET]; local [all...] |
/external/libevent/ |
listener.c | 601 evutil_socket_t sock=-1; local 628 sock = as->s; 635 setsockopt(sock, SOL_SOCKET, SO_UPDATE_ACCEPT_CONTEXT, 647 cb(lev, sock, sa_remote, socklen_remote, data);
|
/external/linux-kselftest/tools/testing/selftests/net/ |
psock_tpacket.c | 85 void (*walk)(int sock, struct ring *ring); 115 int ret, sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); local 116 if (sock == -1) { 121 ret = setsockopt(sock, SOL_PACKET, PACKET_VERSION, &ver, sizeof(ver)); 127 return sock; 234 static void walk_v1_v2_rx(int sock, struct ring *ring) 244 pair_udp_setfilter(sock); 247 pfd.fd = sock; 341 static void __v1_v2_set_packet_loss_discard(int sock) 345 ret = setsockopt(sock, SOL_PACKET, PACKET_LOSS, (void *) &discard 762 int sock; local [all...] |
/external/mdnsresponder/mDNSWindows/ |
mDNSWin32.h | 49 typedef void ( *TCPReadEventHandler )( TCPSocket * sock ); 105 struct UDPSocket_struct sock; member in struct:mDNSInterfaceData 197 extern mStatus TCPAddSocket( mDNS * const inMDNS, TCPSocket *sock );
|
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
TCPMessageChannel.java | 110 * new connections. The sock input is the socket that is returned from the accept. Global data 113 * @param sock Socket from which to read and write messages. The socket is already connected 119 protected TCPMessageChannel(Socket sock, SIPTransactionStack sipStack, 126 mySock = sock; 252 Socket sock = this.sipStack.ioHandler.sendBytes(this.messageProcessor.getIpAddress(), local 261 if (sock != mySock && sock != null) { 267 mySock = sock; 310 Socket sock = this.sipStack.ioHandler.sendBytes(this.messageProcessor.getIpAddress(), local 312 if (sock != mySock && sock != null) [all...] |
/external/openssh/ |
misc.c | 655 int fd = -1, sock; 681 if ((sock = socket(PF_UNIX, SOCK_STREAM, 0)) == -1) 684 if (ioctl(sock, SIOCGIFFLAGS, &ifr) == -1) 693 if (ioctl(sock, SIOCSIFFLAGS, &ifr) == -1) 698 if (ioctl(sock, SIOCSIFFLAGS, &ifr) == -1) 701 close(sock); 707 if (sock >= 0) 708 close(sock); 1065 int saved_errno, sock; local 1076 sock = socket(PF_UNIX, SOCK_STREAM, 0) [all...] |
sshconnect.c | 110 int sp[2], sock; local 168 if ((sock = mm_receive_fd(sp[1])) == -1) 176 packet_set_connection(sock, sock); 275 int sock, r, gaierr; local 278 sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); 279 if (sock < 0) { 283 fcntl(sock, F_SETFD, FD_CLOEXEC); 287 return sock; 299 close(sock); 431 int sock = -1, attempt; local [all...] |
/external/ppp/pppd/ |
tty.c | 876 int sock, port = -1; local 903 sock = socket(PF_INET, SOCK_STREAM, 0); 904 if (sock < 0) { 912 if (connect(sock, (struct sockaddr *)&sad, sizeof(sad)) < 0) { 914 close(sock); 918 return sock; [all...] |
/external/syslinux/core/lwip/src/api/ |
sockets.c | 107 struct lwip_sock *sock; member in struct:lwip_setgetsockopt_data 197 struct lwip_sock *sock; local 205 sock = &sockets[s]; 207 if (!sock->conn) { 213 return sock; 276 * @param sock the socket to free 280 free_socket(struct lwip_sock *sock, int is_tcp) 285 lastdata = sock->lastdata; 286 sock->lastdata = NULL; 287 sock->lastoffset = 0 314 struct lwip_sock *sock, *nsock; local 403 struct lwip_sock *sock; local 443 struct lwip_sock *sock; local 469 struct lwip_sock *sock; local 523 struct lwip_sock *sock; local 552 struct lwip_sock *sock; local 748 struct lwip_sock *sock; local 791 struct lwip_sock *sock; local 1018 struct lwip_sock *sock; local 1143 struct lwip_sock *sock = tryget_socket(i); local 1175 struct lwip_sock *sock = tryget_socket(i); local 1237 struct lwip_sock *sock; local 1356 struct lwip_sock *sock; local 1397 struct lwip_sock *sock; local 1445 struct lwip_sock *sock = get_socket(s); local 1642 struct lwip_sock *sock; local 1845 struct lwip_sock *sock = get_socket(s); local 2052 struct lwip_sock *sock; local 2256 struct lwip_sock *sock = get_socket(s); local 2322 struct lwip_sock *sock = get_socket(s); local [all...] |
/external/wpa_supplicant_8/src/drivers/ |
driver_hostap.c | 41 int sock; /* raw packet socket for driver access */ member in struct:hostap_driver_data 200 static void handle_read(int sock, void *eloop_ctx, void *sock_ctx) 206 len = recv(sock, buf, sizeof(buf), 0); 221 drv->sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); 222 if (drv->sock < 0) { 228 if (eloop_register_read_sock(drv->sock, handle_read, drv, NULL)) { 235 if (ioctl(drv->sock, SIOCGIFINDEX, &ifr) != 0) { 251 if (bind(drv->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 256 return linux_get_ifhwaddr(drv->sock, drv->iface, own_addr); 270 res = send(drv->sock, msg, len, 0) [all...] |
/external/wpa_supplicant_8/src/eap_server/ |
eap_sim_db.c | 61 int sock; member in struct:eap_sim_db_data 626 static void eap_sim_db_receive(int sock, void *eloop_ctx, void *sock_ctx) 632 res = recv(sock, buf, sizeof(buf) - 1, 0); 684 data->sock = socket(PF_UNIX, SOCK_DGRAM, 0); 685 if (data->sock < 0) { 697 close(data->sock); 698 data->sock = -1; 701 if (bind(data->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 703 close(data->sock); 704 data->sock = -1 [all...] |
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
wifi_hal.cpp | 67 struct nl_sock *sock); 98 void wifi_socket_set_local_port(struct nl_sock *sock, uint32_t port) 103 nl_socket_set_local_port(sock, ((uint32_t)getpid() & 0x3FFFFFU) | (port << 22)); 109 struct nl_sock *sock = nl_socket_alloc(); local 110 if (sock == NULL) { 115 wifi_socket_set_local_port(sock, port); 117 if (nl_connect(sock, protocol)) { 119 nl_socket_free(sock); 123 return sock; 258 ALOGE("Could not create diag sock"); [all...] |