HomeSort by relevance Sort by last modified time
    Searched refs:sock (Results 1 - 25 of 327) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/wpa_supplicant_8/src/drivers/
linux_ioctl.h 18 int linux_set_iface_flags(int sock, const char *ifname, int dev_up);
19 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr);
20 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr);
21 int linux_br_add(int sock, const char *brname);
22 int linux_br_del(int sock, const char *brname);
23 int linux_br_add_if(int sock, const char *brname, const char *ifname);
24 int linux_br_del_if(int sock, const char *brname, const char *ifname);
linux_ioctl.c 24 int linux_set_iface_flags(int sock, const char *ifname, int dev_up)
28 if (sock < 0)
34 if (ioctl(sock, SIOCGIFFLAGS, &ifr) != 0) {
50 if (ioctl(sock, SIOCSIFFLAGS, &ifr) != 0) {
60 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr)
66 if (ioctl(sock, SIOCGIFHWADDR, &ifr)) {
83 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr)
92 if (ioctl(sock, SIOCSIFHWADDR, &ifr)) {
116 int linux_br_add(int sock, const char *brname)
118 if (ioctl(sock, SIOCBRADDBR, brname) < 0)
    [all...]
  /external/quake/quake/src/WinQuake/
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_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_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);
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_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...]
  /frameworks/base/cmds/keystore/
keystore_get.h 44 int sock; local
49 sock = socket_local_client("keystore", ANDROID_SOCKET_NAMESPACE_RESERVED,
51 if (sock == -1) {
54 if (send(sock, &code, 1, 0) == 1 && send(sock, bytes, 2, 0) == 2 &&
55 send(sock, key, length, 0) == length && shutdown(sock, SHUT_WR) == 0 &&
56 recv(sock, &code, 1, 0) == 1 && code == /* NO_ERROR */ 1 &&
57 recv(sock, &bytes[0], 1, 0) == 1 && recv(sock, &bytes[1], 1, 0) == 1)
    [all...]
keystore_cli.cpp 51 int sock = socket_local_client("keystore", ANDROID_SOCKET_NAMESPACE_RESERVED, local
53 if (sock == -1) {
58 send(sock, argv[1], 1, 0);
64 send(sock, &bytes, 2, 0);
65 send(sock, argv[i], length, 0);
67 shutdown(sock, SHUT_WR);
70 if (recv(sock, &code, 1, 0) != 1) {
76 while ((i = recv(sock, &bytes[0], 1, 0)) == 1) {
79 if ((i = recv(sock, &bytes[1], 1, 0)) != 1) {
85 i = recv(sock, &bytes[offset], length - offset, 0)
    [all...]
  /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...]
  /development/tools/emulator/system/libqemu/
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...]
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...]
  /sdk/emulator/tests/
test-qemud-pipes.c 18 socket_close(int sock)
21 close(sock);
30 int sock = socket(AF_INET, type, 0); local
31 if (sock < 0) {
43 if (TEMP_FAILURE_RETRY(bind(sock, &addr, sizeof(addr))) < 0) {
44 socket_close(sock);
49 if (TEMP_FAILURE_RETRY(listen(sock, 4)) < 0) {
50 socket_close(sock);
55 return sock;
60 int sock, client local
    [all...]
  /external/qemu/android/protocol/
fb-updates-proxy.h 27 * sock - Socket descriptor for the service
35 ProxyFramebuffer* proxyFb_create(int sock, const char* protocol);
  /system/core/nexus/
nexctl.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
44 if ((sock = socket_local_client("nexus",
52 exit(do_monitor(sock, 0));
53 exit(do_cmd(sock, argc, argv));
56 static int do_cmd(int sock, int argc, char **argv) {
72 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) {
77 return do_monitor(sock, 1);
80 static int do_monitor(int sock, int stop_after_cmd)
    [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
44 if ((sock = socket_local_client("netd",
52 exit(do_monitor(sock, 0));
53 exit(do_cmd(sock, argc, argv));
56 static int do_cmd(int sock, int argc, char **argv) {
72 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) {
77 return do_monitor(sock, 1);
80 static int do_monitor(int sock, int stop_after_cmd)
    [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...]
  /external/apache-http/src/org/apache/http/conn/scheme/
PlainSocketFactory.java 84 public Socket connectSocket(Socket sock, String host, int port,
96 if (sock == null)
97 sock = createSocket();
107 sock.bind(isa);
119 sock.connect(remoteAddress, timeout);
123 return sock;
133 * @param sock the connected socket
139 public final boolean isSecure(Socket sock)
142 if (sock == null) {
148 if (sock.getClass() != Socket.class)
    [all...]
  /external/bluetooth/bluez/btio/
btio.c 152 int err = 0, sock = g_io_channel_unix_get_fd(io); local
155 if (getsockopt(sock, SOL_SOCKET, SO_ERROR, &err, &len) < 0)
256 static int l2cap_bind(int sock, const bdaddr_t *src, uint16_t psm,
270 if (bind(sock, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
278 static int l2cap_connect(int sock, const bdaddr_t *dst,
292 err = connect(sock, (struct sockaddr *) &addr, sizeof(addr));
299 static int l2cap_set_master(int sock, int master)
305 if (getsockopt(sock, SOL_L2CAP, L2CAP_LM, &flags, &len) < 0)
318 if (setsockopt(sock, SOL_L2CAP, L2CAP_LM, &flags, sizeof(flags)) < 0)
324 static int rfcomm_set_master(int sock, int master
1161 int sock; local
1183 int sock; local
1216 int sock; local
1261 int sock; local
1342 int err, sock; local
1397 int sock; local
    [all...]
  /development/tools/emulator/opengl/shared/OpenglCodecCommon/
UnixStream.h 28 UnixStream(int sock, size_t bufSize);
  /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);
  /development/tools/jdwpspy/
Net.cpp 36 int sock; member in struct:Peer
233 netState->dbg.sock = netState->vm.sock = -1;
312 int dbgSock = netState->dbg.sock;
313 int vmSock = netState->vm.sock;
317 netState->listenSock = netState->dbg.sock = netState->vm.sock = -1;
366 int sock; local
371 assert(netState->dbg.sock < 0); /* must not already be talking */
375 sock = accept(netState->listenSock, (struct sockaddr*) &addr, &addrlen)
684 int sock = -1; local
    [all...]

Completed in 231 milliseconds

1 2 3 4 5 6 7 8 91011>>