/external/wpa_supplicant_8/src/eap_server/ |
eap_sim_db.c | 61 int sock; member in struct:eap_sim_db_data 273 static void eap_sim_db_receive(int sock, void *eloop_ctx, void *sock_ctx) 279 res = recv(sock, buf, sizeof(buf), 0); 333 data->sock = socket(PF_UNIX, SOCK_DGRAM, 0); 334 if (data->sock < 0) { 344 if (bind(data->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 346 close(data->sock); 347 data->sock = -1; 354 if (connect(data->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) { 359 close(data->sock); [all...] |
/external/wpa_supplicant_8/src/wps/ |
wps_upnp.c | 900 int sock = -1; local 908 sock = socket(AF_INET, SOCK_DGRAM, 0); 909 if (sock < 0) 913 if (ioctl(sock, SIOCGIFADDR, &req) < 0) { 925 if (ioctl(sock, SIOCGIFHWADDR, &req) < 0) { 940 close(sock); 944 if (sock >= 0) 945 close(sock); [all...] |
/gdk/samples/quake/jni/ |
net_dgrm.cpp | 44 #define sfunc net_landrivers[sock->landriver] 163 int Datagram_SendMessage (qsocket_t *sock, sizebuf_t *data) 176 if (sock->canSend == false) 180 Q_memcpy(sock->sendMessage, data->data, data->cursize); 181 sock->sendMessageLength = data->cursize; 196 packetBuffer.sequence = BigLong(sock->sendSequence++); 197 Q_memcpy (packetBuffer.data, sock->sendMessage, dataLen); 199 sock->canSend = false; 201 if (sfunc.Write (sock->socket, (byte *)&packetBuffer, packetLen, &sock->addr) == -1 838 qsocket_t *sock; local 1221 qsocket_t *sock; local [all...] |
net_main.cpp | 87 #define sfunc net_drivers[sock->driver] 112 qsocket_t *sock; local 121 sock = net_freeSockets; 122 net_freeSockets = sock->next; 125 sock->next = net_activeSockets; 126 net_activeSockets = sock; 128 sock->disconnected = false; 129 sock->connecttime = net_time; 130 Q_strcpy (sock->address,"UNSET ADDRESS"); 131 sock->driver = net_driverlevel 898 qsocket_t *sock; local [all...] |
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/ |
SocketChannelTest.java | 2740 SocketChannel sock = ssc.accept(); local 2768 SocketChannel sock = ssc.accept(); local 2806 SocketChannel sock = ssc.accept(); local 3037 Socket sock = this.channel1.socket(); local 3081 SocketChannel sock = ssc.accept(); local 3127 SocketChannel sock = ssc.accept(); local [all...] |
/bionic/libc/kernel/common/linux/sunrpc/ |
xprt.h | 105 struct socket * sock; member in struct:rpc_xprt 106 struct sock * inet; 170 void (*old_data_ready)(struct sock *, int); 171 void (*old_state_change)(struct sock *); 172 void (*old_write_space)(struct sock *);
|
/development/ndk/platforms/android-3/include/linux/sunrpc/ |
xprt.h | 96 struct socket * sock; member in struct:rpc_xprt 97 struct sock * inet; 162 void (*old_data_ready)(struct sock *, int); 163 void (*old_state_change)(struct sock *); 164 void (*old_write_space)(struct sock *);
|
/external/bluetooth/bluez/audio/ |
control.c | 501 int ret, packet_size, operand_count, sock; local 506 sock = g_io_channel_unix_get_fd(control->io); 508 ret = read(sock, buf, sizeof(buf)); 581 ret = write(sock, buf, packet_size);
|
unix.c | 88 int sock; member in struct:unix_client 107 if (client->sock >= 0) 108 close(client->sock); 142 static int unix_sendmsg_fd(int sock, int fd) 162 return sendmsg(sock, &msgh, MSG_NOSIGNAL); 173 if (send(client->sock, msg, msg->length, 0) < 0) 400 if (unix_sendmsg_fd(client->sock, client->data_fd) < 0) { 439 if (unix_sendmsg_fd(client->sock, client->data_fd) < 0) { 804 if (unix_sendmsg_fd(client->sock, client->data_fd) < 0) { [all...] |
/external/bluetooth/bluez/health/ |
mcap.c | 334 int mcap_send_data(int sock, const void *buf, uint32_t size) 340 int n = write(sock, buf_b + sent, size - sent); 353 int sock, sent; local 358 sock = g_io_channel_unix_get_fd(mcl->cc); 368 sent = mcap_send_data(sock, cmd, sizeof(mcap_rsp) + len); [all...] |
/external/kernel-headers/original/linux/sunrpc/ |
xprt.h | 123 struct socket * sock; /* BSD socket layer */ member in struct:rpc_xprt 124 struct sock * inet; /* INET layer */ 205 void (*old_data_ready)(struct sock *, int); 206 void (*old_state_change)(struct sock *); 207 void (*old_write_space)(struct sock *);
|
/external/libxml2/ |
nanoftp.c | 1994 SOCKET sock; local [all...] |
/external/mdnsresponder/mDNSPosix/ |
mDNSPosix.c | 337 mDNSexport int mDNSPlatformTCPGetFD(TCPSocket *sock) 339 (void)sock; // Unused 343 mDNSexport mStatus mDNSPlatformTCPConnect(TCPSocket *sock, const mDNSAddr *dst, mDNSOpaque16 dstport, domainname *hostname, mDNSInterfaceID InterfaceID, 346 (void)sock; // Unused 356 mDNSexport void mDNSPlatformTCPCloseConnection(TCPSocket *sock) 358 (void)sock; // Unused 361 mDNSexport long mDNSPlatformReadTCP(TCPSocket *sock, void *buf, unsigned long buflen, mDNSBool * closed) 363 (void)sock; // Unused 370 mDNSexport long mDNSPlatformWriteTCP(TCPSocket *sock, const char *msg, unsigned long len) 372 (void)sock; // Unuse 982 int sock; local [all...] |
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
TLSMessageChannel.java | 113 * new connections. The sock input is the socket that is returned from the accept. Global data 116 * @param sock Socket from which to read and write messages. The socket is already connected 124 protected TLSMessageChannel(Socket sock, SIPTransactionStack sipStack, 131 mySock = (SSLSocket) sock; 132 if ( sock instanceof SSLSocket ) { 134 SSLSocket sslSock = (SSLSocket) sock; 255 Socket sock = this.sipStack.ioHandler.sendBytes( local 261 if (sock != mySock && sock != null) { 267 mySock = sock; 308 Socket sock = this.sipStack.ioHandler.sendBytes(this.messageProcessor.getIpAddress(), local [all...] |
/external/openssh/ |
clientloop.c | 1699 int remote_id, sock; local 1768 int sock; local 1807 int sock; local [all...] |
mux.c | 375 if ((new_fd[i] = mm_receive_fd(c->sock)) == -1) { 850 if ((new_fd[i] = mm_receive_fd(c->sock)) == -1) { 1175 mux_listener_channel->self, mux_listener_channel->sock); 1943 int sock; local [all...] |
session.c | 183 int sock = -1; local 211 sock = socket(AF_UNIX, SOCK_STREAM, 0); 212 if (sock < 0) { 223 if (bind(sock, (struct sockaddr *)&sunaddr, sizeof(sunaddr)) < 0) { 233 if (listen(sock, SSH_LISTEN_BACKLOG) < 0) { 240 SSH_CHANNEL_AUTH_SOCKET, sock, sock, -1, 253 if (sock != -1) 254 close(sock); [all...] |
ssh-agent.c | 1000 int len, sock; local 1012 sock = accept(sockets[i].fd, 1014 if (sock < 0) { 1019 if (getpeereid(sock, &euid, &egid) < 0) { 1021 sock, strerror(errno)); 1022 close(sock); 1029 close(sock); 1032 new_socket(AUTH_CONNECTION, sock); 1130 int sock, fd, ch, result, saved_errno; local 1255 sock = socket(AF_UNIX, SOCK_STREAM, 0) [all...] |
/external/quake/quake/src/WinQuake/ |
mplpc.cpp | 167 SOCKET sock[MAXSOCKETS];
member in struct:__anon11986 742 if (FARPKL(&(SockMap->sock[i])) == s)
789 if (FARPKL(&SockMap->sock[i]) == s) {
|
/external/wpa_supplicant_8/src/drivers/ |
driver_bsd.c | 59 int sock; /* open socket for 802.11 ioctls */ member in struct:bsd_driver_data 87 if (ioctl(drv->sock, SIOCS80211, &ireq) < 0) { 108 if (ioctl(drv->sock, SIOCG80211, ireq) < 0) { 149 if (ioctl(drv->sock, SIOCG80211NWID, &ifr) < 0 || 172 return ioctl(drv->sock, SIOCS80211NWID, &ifr); 187 if (ioctl(drv->sock, SIOCGIFMEDIA, &ifmr) < 0) { 206 if (ioctl(drv->sock, SIOCSIFMEDIA, &ifr) < 0) { 269 if (ioctl(drv->sock, SIOCGIFFLAGS, &ifr) < 0) { 279 if (ioctl(drv->sock, SIOCSIFFLAGS, &ifr) < 0) { 576 return ioctl(drv->sock, SIOCS80211CHANNEL, &creq) [all...] |
/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.4.3/sysroot/usr/include/linux/sunrpc/ |
xprt.h | 96 struct socket * sock; member in struct:rpc_xprt 97 struct sock * inet; 162 void (*old_data_ready)(struct sock *, int); 163 void (*old_state_change)(struct sock *); 164 void (*old_write_space)(struct sock *);
|
/prebuilts/gcc/linux-x86/mips/mipsel-linux-android-4.4.3/sysroot/usr/include/linux/sunrpc/ |
xprt.h | 96 struct socket * sock; member in struct:rpc_xprt 97 struct sock * inet; 162 void (*old_data_ready)(struct sock *, int); 163 void (*old_state_change)(struct sock *); 164 void (*old_write_space)(struct sock *);
|
/prebuilts/ndk/android-ndk-r4/platforms/android-3/arch-arm/usr/include/linux/sunrpc/ |
xprt.h | 96 struct socket * sock; member in struct:rpc_xprt 97 struct sock * inet; 162 void (*old_data_ready)(struct sock *, int); 163 void (*old_state_change)(struct sock *); 164 void (*old_write_space)(struct sock *);
|
/prebuilts/ndk/android-ndk-r4/platforms/android-4/arch-arm/usr/include/linux/sunrpc/ |
xprt.h | 96 struct socket * sock; member in struct:rpc_xprt 97 struct sock * inet; 162 void (*old_data_ready)(struct sock *, int); 163 void (*old_state_change)(struct sock *); 164 void (*old_write_space)(struct sock *);
|
/prebuilts/ndk/android-ndk-r4/platforms/android-5/arch-arm/usr/include/linux/sunrpc/ |
xprt.h | 96 struct socket * sock; member in struct:rpc_xprt 97 struct sock * inet; 162 void (*old_data_ready)(struct sock *, int); 163 void (*old_state_change)(struct sock *); 164 void (*old_write_space)(struct sock *);
|