HomeSort by relevance Sort by last modified time
    Searched defs:sock (Results 76 - 100 of 268) sorted by null

1 2 34 5 6 7 8 91011

  /art/runtime/jdwp/
jdwp_adb.cc 369 int sock = ReceiveClientFd(); local
370 if (sock >= 0) {
372 close(sock);
  /external/apache-http/src/org/apache/http/impl/conn/
AbstractClientConnAdapter.java 338 Socket sock = conn.getSocket(); local
339 if (sock instanceof SSLSocket) {
340 result = ((SSLSocket)sock).getSession();
  /external/boringssl/src/crypto/bio/
bio_test.cc 47 static int closesocket(int sock) {
48 return close(sock);
62 ScopedSocket(int sock) : sock_(sock) {}
119 int sock = accept(listening_sock, (struct sockaddr *) &sin, &sockaddr_len); local
120 if (sock == -1) {
124 ScopedSocket sock_closer(sock);
127 if (recv(sock, buf, sizeof(buf), 0) != sizeof(kTestMessage)) {
  /external/clang/test/Analysis/
taint-generic.c 162 int sock; local
165 sock = socket(AF_INET, SOCK_STREAM, 0);
166 read(sock, buffer, 100);
169 sock = socket(AF_LOCAL, SOCK_STREAM, 0);
170 read(sock, buffer, 100);
  /external/libpcap/
pcap-netfilter-linux.c 635 int sock; local
637 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_NETFILTER);
638 if (sock < 0) {
646 close(sock);
  /external/libvncserver/libvncclient/
sockets.c 38 #define read(sock,buf,len) recv(sock,buf,len,0)
39 #define write(sock,buf,len) send(sock,buf,len,0)
142 i = read(client->sock, client->buf + client->buffered, RFB_BUF_SIZE - client->buffered);
180 i = read(client->sock, out, n);
246 j = write(client->sock, buf + i, (n - i));
258 FD_SET(client->sock,&fds);
260 if (select(client->sock+1, NULL, &fds, NULL, NULL) <= 0) {
304 int sock; local
344 int sock; local
440 int sock, port; local
488 int sock; local
600 int sock; local
    [all...]
  /external/libvncserver/libvncserver/
sockets.c 95 #define read(sock,buf,len) recv(sock,buf,len,0)
98 #define write(sock,buf,len) send(sock,buf,len,0)
286 if (FD_ISSET(cl->sock, &(rfbScreen->allFds)))
366 if (FD_ISSET(cl->sock, &(rfbScreen->allFds)))
368 if (FD_ISSET(cl->sock, &fds))
383 int sock = -1; local
410 if ((sock = accept(chosen_listen_sock,
416 if(!rfbSetNonBlocking(sock)) {
506 int sock; local
545 int sock = cl->sock; local
637 int sock = cl->sock; local
715 int sock = cl->sock; local
831 int sock; local
941 int sock; local
1013 int sock; local
    [all...]
  /external/openssh/
authfd.c 91 int sock, oerrno; local
105 if ((sock = socket(AF_UNIX, SOCK_STREAM, 0)) < 0)
109 if (fcntl(sock, F_SETFD, FD_CLOEXEC) == -1 ||
110 connect(sock, (struct sockaddr *)&sunaddr, sizeof(sunaddr)) < 0) {
112 close(sock);
117 *fdp = sock;
119 close(sock);
125 ssh_request_reply(int sock, struct sshbuf *request, struct sshbuf *reply)
136 if (atomicio(vwrite, sock, buf, 4) != 4 ||
137 atomicio(vwrite, sock, (u_char *)sshbuf_ptr(request)
    [all...]
  /external/srtp/test/
rtpw.c 115 leave_group(int sock, struct ip_mreq mreq, char *name);
129 int sock, ret; local
257 sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
258 if (sock < 0) {
275 ret = setsockopt(sock, IPPROTO_IP, IP_MULTICAST_TTL, &ttl,
286 ret = setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, (void*)&mreq,
399 ret = bind(sock, (struct sockaddr *) &local, sizeof(struct sockaddr_in));
413 rtp_sender_init(snd, sock, name, ssrc);
427 leave_group(sock, mreq, argv[0]);
448 if (bind(sock, (struct sockaddr *)&name, sizeof(name)) < 0)
    [all...]
  /external/wpa_supplicant_8/wpa_supplicant/
ctrl_iface_udp.c 46 int sock; member in struct:ctrl_iface_priv
197 static void wpa_supplicant_ctrl_iface_receive(int sock, void *eloop_ctx,
218 res = recvfrom(sock, buf, sizeof(buf) - 1, 0,
309 sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from,
313 sendto(sock, "FAIL\n", 5, 0, (struct sockaddr *) &from,
316 sendto(sock, "OK\n", 3, 0, (struct sockaddr *) &from,
353 priv->sock = -1;
359 priv->sock = socket(domain, SOCK_DGRAM, 0);
360 if (priv->sock < 0) {
387 if (bind(priv->sock, (struct sockaddr *) &addr, sizeof(addr)) < 0)
517 int sock; member in struct:ctrl_iface_global_priv
    [all...]
ctrl_iface_unix.c 48 int sock; member in struct:ctrl_iface_priv
56 int sock; member in struct:ctrl_iface_global_priv
63 const char *ifname, int sock,
154 static void wpa_supplicant_ctrl_iface_receive(int sock, void *eloop_ctx,
167 res = recvfrom(sock, buf, sizeof(buf) - 1, 0,
218 if (sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from,
233 sock = wpas_ctrl_iface_reinit(wpa_s, priv);
234 if (sock < 0) {
320 priv->sock, &priv->ctrl_dst, level, txt, len,
327 wpa_supplicant_ctrl_iface_send(wpa_s, NULL, wpa_s->ctrl_iface->sock,
    [all...]
  /frameworks/opt/bluetooth/src/android/bluetooth/client/map/
BluetoothMnsService.java 109 BluetoothSocket sock = mServerSocket.accept(); local
112 + sock.getRemoteDevice().getName());
117 sock);
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/
TestDriver.java 64 Socket sock = new Socket(InetAddress.getLoopbackAddress(), 6104); local
65 BufferedOutputStream out = new BufferedOutputStream(sock.getOutputStream());
70 BufferedInputStream in = new BufferedInputStream(sock.getInputStream());
103 Socket sock = new Socket(InetAddress.getLoopbackAddress(), 6104); local
104 BufferedOutputStream out = new BufferedOutputStream(sock.getOutputStream());
110 BufferedInputStream in = new BufferedInputStream(sock.getInputStream());
124 Socket sock = new Socket(InetAddress.getLoopbackAddress(), 6104); local
125 BufferedOutputStream out = new BufferedOutputStream(sock.getOutputStream());
131 BufferedInputStream in = new BufferedInputStream(sock.getInputStream());
  /system/core/logd/
main.cpp 339 int sock = TEMP_FAILURE_RETRY( local
343 if (sock < 0) {
347 ssize_t ret = TEMP_FAILURE_RETRY(write(sock, reinit, sizeof(reinit)));
353 p.fd = sock;
365 ret = TEMP_FAILURE_RETRY(read(sock, buffer, sizeof(buffer)));
  /system/core/logd/tests/
logd_test.cpp 37 int sock = socket_local_client("logd", local
40 if (sock >= 0) {
41 if (write(sock, buf, strlen(buf) + 1) > 0) {
43 while ((ret = read(sock, buf, len)) > 0) {
51 .fd = sock,
62 close(sock);
485 int sock = socket_local_client("logd", local
489 ASSERT_TRUE(sock >= 0);
492 if (write(sock, getPruneList, sizeof(getPruneList)) > 0) {
495 read(sock, buffer, sizeof(buffer))
    [all...]
  /external/boringssl/src/ssl/test/
bssl_shim.cc 55 static int closesocket(int sock) {
56 return close(sock);
347 int sock = socket(AF_INET, SOCK_STREAM, 0); local
348 if (sock == -1) {
353 if (setsockopt(sock, IPPROTO_TCP, TCP_NODELAY,
356 closesocket(sock);
365 closesocket(sock);
368 if (connect(sock, reinterpret_cast<const sockaddr*>(&sin),
371 closesocket(sock);
374 return sock;
663 int sock = Connect(config->port); local
    [all...]
  /external/deqp/framework/delibs/deutil/
deSocket.c 386 deSocket* sock = (deSocket*)deCalloc(sizeof(deSocket)); local
387 if (!sock)
388 return sock;
396 sock->stateLock = deMutex_create(0);
397 sock->handle = DE_INVALID_SOCKET_HANDLE;
398 sock->state = DE_SOCKETSTATE_CLOSED;
400 return sock;
403 void deSocket_destroy (deSocket* sock)
405 if (sock->state != DE_SOCKETSTATE_CLOSED)
406 deSocket_close(sock);
    [all...]
  /external/iputils/
clockdiff.c 102 int sock; variable
  /external/iputils/ninfod/
ninfod.c 135 int sock; variable
212 static int set_recvpktinfo(int sock)
219 ret = setsockopt(sock,
225 ret = setsockopt(sock,
240 ret = setsockopt(sock,
253 static int __inline__ init_sock(int sock)
260 if (setsockopt(sock,
271 if (setsockopt(sock,
279 if (set_recvpktinfo(sock) < 0)
288 int sock = p->sock local
333 int sock = p->sock; local
    [all...]
  /external/javassist/src/main/javassist/tools/web/
Webserver.java 393 Socket sock; field in class:ServiceThread
397 sock = s;
402 web.process(sock);