/external/mdnsresponder/mDNSShared/ |
PlatformCommon.c | 44 int sock = socket(AF_INET, SOCK_DGRAM, 0); local 46 if (sock == -1) return; 71 if ((connect(sock, &addr.s, inner_len)) < 0) 74 if ((getsockname(sock, &addr.s, &len)) < 0) 81 close(sock);
|
dnsextd.c | 115 TCPSocket *sock; // socket connected to client member in struct:__anon12246 238 mDNSlocal mStatus AddSourceToEventLoop( DaemonInfo * self, TCPSocket *sock, EventCallback callback, void *context ) 257 newSource->sock = sock; 258 newSource->fd = mDNSPlatformTCPGetFD( sock ); 270 mDNSlocal mStatus RemoveSourceFromEventLoop( DaemonInfo * self, TCPSocket *sock ) 277 if ( source->sock == sock ) 305 TCPSocket *sock = mDNSPlatformTCPSocket( NULL, 0, &port ); local 306 if ( !sock ) { LogErr("ConnectToServer", "socket"); return NULL; 910 TCPSocket *sock = NULL; local 1342 TCPSocket *sock = ConnectToServer(d); local 1514 TCPSocket * sock = NULL; local 1742 TCPSocket *sock = NULL; local [all...] |
/external/ppp/pppd/plugins/rp-pppoe/ |
plugin.c | 190 int sock; local 197 sock = socket(AF_INET, SOCK_DGRAM, 0); 198 if (sock < 0) { 204 if (ioctl(sock, SIOCSIFMTU, &ifr) < 0) { 208 (void) close (sock);
|
if.c | 147 getHWaddr(int sock, char const *ifname, unsigned char *hwaddr) 158 if (ioctl(sock, SIOCGIFCONF, &ifc) < 0) { 282 int sock; local 319 if ((sock = socket(AF_LOCAL, SOCK_DGRAM, 0)) < 0) { 325 if (ioctl(sock, SIOCGIFFLAGS, &ifr) < 0) { 338 getHWaddr(sock, ifname, hwaddr); 344 if (ioctl(sock, SIOCGIFMTU, &ifr) < 0) { 356 if (close(sock) < 0) { 517 * sock -- socket to send to 526 sendPacket(PPPoEConnection *conn, int sock, PPPoEPacket *pkt, int size [all...] |
pppoe.h | 284 int sendPacket(PPPoEConnection *conn, int sock, PPPoEPacket *pkt, int size); 285 int receivePacket(int sock, PPPoEPacket *pkt, int *size); 296 void asyncReadFromEth(PPPoEConnection *conn, int sock, int clampMss); 297 void syncReadFromEth(PPPoEConnection *conn, int sock, int clampMss);
|
/external/qemu/android/protocol/ |
fb-updates-impl.c | 60 int sock; member in struct:FrameBufferImpl 116 ret = socket_recv(fbi->sock, fbi->reader_buffer + fbi->reader_offset, 218 fbi->sock = core_connection_get_socket(fbi->core_connection); 221 loopIo_init(fbi->io, looper, fbi->sock, 228 SyncSocket* sk = syncsocket_init(fbi->sock);
|
fb-updates-proxy.c | 53 int sock; member in struct:ProxyFramebuffer 256 proxyFb_create(int sock, const char* protocol) 264 ret->sock = sock; 276 loopIo_init(&ret->io, ret->looper, sock, _proxyFb_io_fun, ret);
|
core-commands-proxy.c | 35 int sock; member in struct:CoreCmdProxy 329 _coreCmdProxy.sock = core_connection_get_socket(_coreCmdProxy.core_connection); 330 _coreCmdProxy.sync_writer = syncsocket_init(_coreCmdProxy.sock); 336 _coreCmdProxy.sync_reader = syncsocket_init(_coreCmdProxy.sock);
|
/external/wpa_supplicant_8/src/drivers/ |
driver_bsd.c | 53 int sock; /* open socket for 802.11 ioctls */ member in struct:bsd_driver_data 81 if (ioctl(drv->sock, SIOCS80211, &ireq) < 0) { 102 if (ioctl(drv->sock, SIOCG80211, ireq) < 0) { 143 if (ioctl(drv->sock, SIOCG80211NWID, &ifr) < 0 || 166 return ioctl(drv->sock, SIOCS80211NWID, &ifr); 181 if (ioctl(drv->sock, SIOCGIFMEDIA, &ifmr) < 0) { 200 if (ioctl(drv->sock, SIOCSIFMEDIA, &ifr) < 0) { 263 if (ioctl(drv->sock, SIOCGIFFLAGS, &ifr) < 0) { 273 if (ioctl(drv->sock, SIOCSIFFLAGS, &ifr) < 0) { 570 return ioctl(drv->sock, SIOCS80211CHANNEL, &creq) [all...] |
driver_hostap.c | 41 int sock; /* raw packet socket for driver access */ member in struct:hostap_driver_data 209 static void handle_read(int sock, void *eloop_ctx, void *sock_ctx) 215 len = recv(sock, buf, sizeof(buf), 0); 230 drv->sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); 231 if (drv->sock < 0) { 236 if (eloop_register_read_sock(drv->sock, handle_read, drv, NULL)) { 243 if (ioctl(drv->sock, SIOCGIFINDEX, &ifr) != 0) { 258 if (bind(drv->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 263 return linux_get_ifhwaddr(drv->sock, drv->iface, own_addr); 275 res = send(drv->sock, msg, len, 0) [all...] |
/external/dropbear/ |
svr-agentfwd.c | 47 static void agentaccept(struct Listener * listener, int sock); 98 static void agentaccept(struct Listener *UNUSED(listener), int sock) { 102 fd = accept(sock, NULL, NULL);
|
svr-x11fwd.c | 40 static void x11accept(struct Listener* listener, int sock); 101 static void x11accept(struct Listener* listener, int sock) { 111 fd = accept(sock, (struct sockaddr*)&addr, &len);
|
/frameworks/base/tests/CoreTests/android/core/ |
SocketTest.java | 122 Socket sock = serverSock.accept(); local 123 sock.getInputStream().read(); 124 sock.close(); 190 // Socket sock = new Socket(); 194 // sock.connect(new InetSocketAddress(NON_EXISTING_ADDRESS, 80), timeout); 204 // sock.close();
|
/external/ipsec-tools/src/racoon/ |
session.c | 218 if (FD_ISSET(p->sock, &rfds)) 219 isakmp_handler(p->sock); 306 if (p->sock >= FD_SETSIZE) { 310 FD_SET(p->sock, &mask0); 311 nfds = (nfds > p->sock ? nfds : p->sock);
|
/external/openssh/ |
nchan.c | 495 if (c->sock != -1) { 496 if (shutdown(c->sock, SHUT_WR) < 0) 499 c->self, c->sock, strerror(errno)); 513 if (c->sock != -1) { 515 * shutdown(sock, SHUT_READ) may return ENOTCONN if the 519 if (shutdown(c->sock, SHUT_RD) < 0 523 c->self, c->sock, c->istate, c->ostate,
|
/device/generic/goldfish/opengl/shared/OpenglCodecCommon/ |
SocketStream.cpp | 40 SocketStream::SocketStream(int sock, size_t bufSize) : 42 m_sock(sock),
|
/device/generic/goldfish/opengl/system/OpenglSystemCommon/ |
QemuPipeStream.cpp | 32 QemuPipeStream::QemuPipeStream(int sock, size_t bufSize) : 34 m_sock(sock),
|
/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);
|
/sdk/emulator/opengl/shared/OpenglCodecCommon/ |
SocketStream.cpp | 40 SocketStream::SocketStream(int sock, size_t bufSize) : 42 m_sock(sock),
|
/external/wpa_supplicant_8/src/eap_server/ |
eap_sim_db.c | 62 int sock; member in struct:eap_sim_db_data 571 static void eap_sim_db_receive(int sock, void *eloop_ctx, void *sock_ctx) 577 res = recv(sock, buf, sizeof(buf), 0); 631 data->sock = socket(PF_UNIX, SOCK_DGRAM, 0); 632 if (data->sock < 0) { 643 if (bind(data->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 645 close(data->sock); 646 data->sock = -1; 653 if (connect(data->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 658 close(data->sock); [all...] |
/external/wpa_supplicant_8/src/l2_packet/ |
l2_packet_none.c | 52 static void l2_packet_receive(int sock, void *eloop_ctx, void *sock_ctx) 58 /* TODO: receive frame (e.g., recv() using sock */
|
/external/kernel-headers/original/linux/ |
dccp.h | 369 extern int dccp_parse_options(struct sock *sk, struct sk_buff *skb); 438 * @dccps_role - Role of this sock, one of %dccp_role 475 static inline struct dccp_sock *dccp_sk(const struct sock *sk) 480 static inline struct dccp_minisock *dccp_msk(const struct sock *sk) 485 static inline int dccp_service_not_initialized(const struct sock *sk) 490 static inline const char *dccp_role(const struct sock *sk)
|
/dalvik/vm/jdwp/ |
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/chromium/net/socket/ |
transport_client_socket_unittest.cc | 57 virtual void DidClose(ListenSocket* sock) {} 102 ListenSocket *sock = NULL; local 111 sock = ListenSocket::Listen("127.0.0.1", port, this); 112 if (sock) 115 ASSERT_TRUE(sock != NULL); 116 listen_sock_ = sock;
|
/packages/apps/Nfc/src/com/android/nfc/ndefpush/ |
NdefPushServer.java | 66 ConnectionThread(LlcpSocket sock) { 68 mSock = sock;
|