/external/wpa_supplicant_8/src/drivers/ |
linux_ioctl.h | 12 int linux_set_iface_flags(int sock, const char *ifname, int dev_up); 13 int linux_iface_up(int sock, const char *ifname); 14 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr); 15 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr); 16 int linux_br_add(int sock, const char *brname); 17 int linux_br_del(int sock, const char *brname); 18 int linux_br_add_if(int sock, const char *brname, const char *ifname); 19 int linux_br_del_if(int sock, const char *brname, const char *ifname);
|
linux_ioctl.c | 18 int linux_set_iface_flags(int sock, const char *ifname, int dev_up) 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) 63 if (sock < 0) 69 if (ioctl(sock, SIOCGIFFLAGS, &ifr) != 0) { 80 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr) 86 if (ioctl(sock, SIOCGIFHWADDR, &ifr)) { 103 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr [all...] |
driver_openbsd.c | 24 int sock; /* open socket for 802.11 ioctls */ member in struct:openbsd_driver_data 38 if (ioctl(drv->sock, SIOCG80211NWID, &ifr) < 0 || 53 if (ioctl(drv->sock, SIOCG80211BSSID, &id) < 0) 87 if (ioctl(drv->sock, SIOCS80211KEYAVAIL, &keyavail) < 0) 102 drv->sock = socket(PF_INET, SOCK_DGRAM, 0); 103 if (drv->sock < 0) 122 close(drv->sock);
|
/external/quake/quake/src/WinQuake/ |
net_loop.cpp | 127 int Loop_GetMessage (qsocket_t *sock) 132 if (sock->receiveMessageLength == 0) 135 ret = sock->receiveMessage[0]; 136 length = sock->receiveMessage[1] + (sock->receiveMessage[2] << 8); 139 SZ_Write (&net_message, &sock->receiveMessage[4], length); 142 sock->receiveMessageLength -= length; 144 if (sock->receiveMessageLength) 145 Q_memcpy(sock->receiveMessage, &sock->receiveMessage[length], sock->receiveMessageLength) [all...] |
net_dgrm.h | 28 int Datagram_GetMessage (qsocket_t *sock); 29 int Datagram_SendMessage (qsocket_t *sock, sizebuf_t *data); 30 int Datagram_SendUnreliableMessage (qsocket_t *sock, sizebuf_t *data); 31 qboolean Datagram_CanSendMessage (qsocket_t *sock); 32 qboolean Datagram_CanSendUnreliableMessage (qsocket_t *sock); 33 void Datagram_Close (qsocket_t *sock);
|
net_loop.h | 27 int Loop_GetMessage (qsocket_t *sock); 28 int Loop_SendMessage (qsocket_t *sock, sizebuf_t *data); 29 int Loop_SendUnreliableMessage (qsocket_t *sock, sizebuf_t *data); 30 qboolean Loop_CanSendMessage (qsocket_t *sock); 31 qboolean Loop_CanSendUnreliableMessage (qsocket_t *sock); 32 void Loop_Close (qsocket_t *sock);
|
net_ser.h | 27 int Serial_GetMessage (qsocket_t *sock);
28 int Serial_SendMessage (qsocket_t *sock, sizebuf_t *data);
29 int Serial_SendUnreliableMessage (qsocket_t *sock, sizebuf_t *data);
30 qboolean Serial_CanSendMessage (qsocket_t *sock);
31 qboolean Serial_CanSendUnreliableMessage (qsocket_t *sock);
32 void Serial_Close (qsocket_t *sock);
|
net_vcr.cpp | 77 static long getDriverDataAsLong(qsocket_t *sock) { 79 memcpy(&driverDataAsLong, &sock->driverdata, sizeof(long)); 83 int VCR_GetMessage (qsocket_t *sock) 87 if (host_time != next.time || next.op != VCR_OP_GETMESSAGE || next.session != getDriverDataAsLong(sock)) 106 int VCR_SendMessage (qsocket_t *sock, sizebuf_t *data) 110 if (host_time != next.time || next.op != VCR_OP_SENDMESSAGE || next.session != getDriverDataAsLong(sock)) 121 qboolean VCR_CanSendMessage (qsocket_t *sock) 125 if (host_time != next.time || next.op != VCR_OP_CANSENDMESSAGE || next.session != getDriverDataAsLong(sock)) 136 void VCR_Close (qsocket_t *sock) 154 qsocket_t *sock; local [all...] |
net_ser.cpp | 75 qsocket_t *sock;
member in struct:SerialLine_s 172 if (p->sequence == p->sock->receiveSequence)
174 p->sock->receiveSequence = (p->sequence + 1) & 0xff;
175 p->sock->receiveMessageLength += p->lengthFound;
178 Con_DPrintf("Serial: reliable out of order; got %u wanted %u\n", p->sequence, p->sock->receiveSequence);
182 p->sock->unreliableReceiveSequence = (p->sequence + 1) & 0xff;
183 p->sock->receiveMessageLength += p->lengthFound;
188 if (p->sequence == p->sock->sendSequence)
190 p->sock->sendSequence = (p->sock->sendSequence + 1) & 0xff; [all...] |
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...] |
net_vcr.h | 33 int VCR_GetMessage (qsocket_t *sock); 34 int VCR_SendMessage (qsocket_t *sock, sizebuf_t *data); 35 qboolean VCR_CanSendMessage (qsocket_t *sock); 36 void VCR_Close (qsocket_t *sock);
|
/external/kernel-headers/original/linux/ |
net.h | 113 struct sock *sk; 128 int (*release) (struct socket *sock); 129 int (*bind) (struct socket *sock, 132 int (*connect) (struct socket *sock, 137 int (*accept) (struct socket *sock, 139 int (*getname) (struct socket *sock, 142 unsigned int (*poll) (struct file *file, struct socket *sock, 144 int (*ioctl) (struct socket *sock, unsigned int cmd, 146 int (*compat_ioctl) (struct socket *sock, unsigned int cmd, 148 int (*listen) (struct socket *sock, int len) [all...] |
/system/netd/ |
ndc.c | 35 static int do_monitor(int sock, int stop_after_cmd); 36 static int do_cmd(int sock, int argc, char **argv); 39 int sock; local 47 if ((sock = socket_local_client(argv[1], 50 if ((sock = socket_local_client("netd", 63 exit(do_monitor(sock, 0)); 64 exit(do_cmd(sock, argc-cmdOffset, &(argv[cmdOffset]))); 67 static int do_cmd(int sock, int argc, char **argv) { 96 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) { 103 return do_monitor(sock, 1) [all...] |
NetlinkManager.cpp | 53 NetlinkHandler *NetlinkManager::setupSocket(int *sock, int netlinkFamily, 65 if ((*sock = socket(PF_NETLINK, SOCK_DGRAM, netlinkFamily)) < 0) { 70 if (setsockopt(*sock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) { 72 close(*sock); 76 if (setsockopt(*sock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) { 78 close(*sock); 82 if (bind(*sock, (struct sockaddr *) &nladdr, sizeof(nladdr)) < 0) { 84 close(*sock); 88 NetlinkHandler *handler = new NetlinkHandler(this, *sock, format); 91 close(*sock); [all...] |
/device/generic/goldfish/libqemu/ |
test_host_1.c | 49 socket_close(int sock) 52 close(sock); 62 int sock = socket(AF_INET, type, 0); local 63 if (sock < 0) { 73 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &n, sizeof(n)); 75 if (TFR(bind(sock, (struct sockaddr*)&addr, sizeof(addr))) < 0) { 76 socket_close(sock); 81 if (TFR(listen(sock, 4)) < 0) { 82 socket_close(sock); 87 return sock; 95 int sock = socket(AF_UNIX, type, 0); local 144 int sock, client; local [all...] |
test_host_2.c | 47 socket_close(int sock) 50 close(sock); 60 int sock = socket(AF_INET, type, 0); local 61 if (sock < 0) { 71 setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &n, sizeof(n)); 73 if (TFR(bind(sock, (struct sockaddr*)&addr, sizeof(addr))) < 0) { 74 socket_close(sock); 79 if (TFR(listen(sock, 4)) < 0) { 80 socket_close(sock); 85 return sock; 91 int sock, client; local [all...] |
/packages/apps/Nfc/src/com/android/nfc/handover/ |
HandoverClient.java | 53 LlcpSocket sock = null; local 55 sock = service.createLlcpSocket(0, MIU, 1, 1024); 65 sock.connectToService(HandoverServer.HANDOVER_SERVICE_NAME); 67 if (sock != null) { 69 sock.close(); 80 mSocket = sock; 101 LlcpSocket sock = null; 106 sock = mSocket; 113 int remoteMiu = sock.getRemoteMiu(); 119 sock.send(tmpBuffer) [all...] |
/system/vold/ |
vdc.c | 36 static int do_monitor(int sock, int stop_after_cmd); 37 static int do_cmd(int sock, int argc, char **argv); 40 int sock; local 45 if ((sock = socket_local_client("vold", 53 exit(do_monitor(sock, 0)); 54 exit(do_cmd(sock, argc, argv)); 57 static int do_cmd(int sock, int argc, char **argv) { 76 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) { 81 return do_monitor(sock, 1); 84 static int do_monitor(int sock, int stop_after_cmd) [all...] |
/packages/apps/Nfc/src/com/android/nfc/ndefpush/ |
NdefPushClient.java | 55 LlcpSocket sock = null; local 58 sock = service.createLlcpSocket(0, MIU, 1, 1024); 67 sock.connectToService(NdefPushServer.SERVICE_NAME); 69 if (sock != null) { 71 sock.close(); 83 mSocket = sock; 89 LlcpSocket sock = null; local 95 sock = mSocket; 104 remoteMiu = sock.getRemoteMiu(); 110 sock.send(tmpBuffer) [all...] |
/external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/tcp/ |
SocketConnector.java | 57 private Socket sock; field in class:SocketConnector 66 this.sock = new Socket(address, port); 67 remoteAddress = sock.getRemoteSocketAddress(); // for info purposes 71 sock.setTcpNoDelay(true); 73 in = sock.getInputStream(); 74 out = sock.getOutputStream(); 81 if( sock == null ) 87 if( sock == null ) 89 return sock.isConnected(); 96 Socket temp = sock; [all...] |
/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...] |
/external/qemu/block/ |
nbd.c | 37 int sock; member in struct:BDRVNBDState 47 int sock; local 60 sock = unix_socket_outgoing(unixpath); 79 sock = tcp_socket_outgoing(hostname, port); 82 if (sock == -1) 85 ret = nbd_receive_negotiate(sock, &size, &blocksize); 89 s->sock = sock; 108 if (nbd_send_request(s->sock, &request) == -1) 111 if (nbd_receive_reply(s->sock, &reply) == -1 [all...] |
/system/core/include/sysutils/ |
FrameworkClient.h | 13 FrameworkClient(int sock);
|
/external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/udp/ |
UdpConnector.java | 52 private DatagramSocket sock = new DatagramSocket(); field in class:UdpConnector 70 this.sock = new DatagramSocket( localSocketAddress ); 74 sock.connect( remoteAddress ); 81 if( sock == null ) 87 if( sock == null ) 89 return sock.isConnected(); 95 DatagramSocket temp = sock; 96 sock = null; 120 sock.receive(packet); 140 sock.send(p) [all...] |