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

1 23 4 5 6 7 8 91011

  /external/libnl/src/
nl-addr-delete.c 15 static struct nl_sock *sock; variable in typeref:struct:nl_sock
59 if ((err = rtnl_addr_delete(sock, addr, 0)) < 0)
76 sock = nl_cli_alloc_socket();
77 nl_cli_connect(sock, NETLINK_ROUTE);
78 link_cache = nl_cli_link_alloc_cache(sock);
79 addr_cache = nl_cli_addr_alloc_cache(sock);
nl-cls-delete.c 16 static struct nl_sock *sock; variable in typeref:struct:nl_sock
52 if ((err = rtnl_cls_delete(sock, cls, 0)) < 0)
70 sock = nlt_alloc_socket();
71 nlt_connect(sock, NETLINK_ROUTE);
72 link_cache = nlt_alloc_link_cache(sock);
121 err = rtnl_cls_alloc_cache(sock, rtnl_cls_get_ifindex(cls),
nl-route-add.c 54 struct nl_sock *sock; local
62 sock = nl_cli_alloc_socket();
63 nl_cli_connect(sock, NETLINK_ROUTE);
64 link_cache = nl_cli_link_alloc_cache(sock);
65 route_cache = nl_cli_route_alloc_cache(sock, 0);
123 if ((err = rtnl_route_add(sock, route, 0)) < 0)
nl-route-delete.c 18 static struct nl_sock *sock; variable in typeref:struct:nl_sock
73 if ((err = rtnl_route_delete(sock, route, 0)) < 0)
90 sock = nl_cli_alloc_socket();
91 nl_cli_connect(sock, NETLINK_ROUTE);
92 link_cache = nl_cli_link_alloc_cache(sock);
93 route_cache = nl_cli_route_alloc_cache(sock, 0);
nl-addr-list.c 113 struct nl_sock *sock; local
123 sock = nl_cli_alloc_socket();
124 nl_cli_connect(sock, NETLINK_ROUTE);
125 link_cache = nl_cli_link_alloc_cache(sock);
126 addr_cache = nl_cli_addr_alloc_cache(sock);
  /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);
  /external/valgrind/none/tests/
fdleak_cmsg.c 34 char sock[24]; variable
47 sprintf(addr.sun_path, "%s", sock);
49 unlink(sock);
108 sprintf(addr.sun_path, "%s", sock);
156 sprintf(sock, "/tmp/sock.%d", pid);
169 (void) DO( unlink(sock) );
  /external/wpa_supplicant_8/src/drivers/
netlink.c 19 int sock; member in struct:netlink_data
36 static void netlink_receive(int sock, void *eloop_ctx, void *sock_ctx)
48 left = recvfrom(sock, buf, sizeof(buf), MSG_DONTWAIT,
100 netlink->sock = socket(PF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
101 if (netlink->sock < 0) {
111 if (bind(netlink->sock, (struct sockaddr *) &local, sizeof(local)) < 0)
119 eloop_register_read_sock(netlink->sock, netlink_receive, netlink,
132 if (netlink->sock >= 0) {
133 eloop_unregister_read_sock(netlink->sock);
134 close(netlink->sock);
    [all...]
  /system/bt/tools/hci/
main.c 144 int sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); local
145 if (sock == INVALID_FD)
152 if (connect(sock, (const struct sockaddr *)&addr, sizeof(addr)) == -1)
155 if (send(sock, &type, 1, 0) != 1)
158 if (send(sock, &length, 2, 0) != 2)
161 if (send(sock, packet, length, 0) != (ssize_t)length)
164 close(sock);
168 close(sock);
  /system/core/logd/
CommandListener.cpp 320 int sock = android_get_control_socket(socketName); local
322 if (sock < 0) {
323 sock = socket_local_server(socketName,
328 return sock;
LogReader.cpp 186 int sock = android_get_control_socket(socketName); local
188 if (sock < 0) {
189 sock = socket_local_server(socketName,
194 return sock;
  /system/extras/ext4_utils/
ext4_crypt_init_extensions.cpp 26 int sock = -1; local
29 sock = socket_local_client("cryptd",
32 if (sock >= 0) {
38 if (sock < 0) {
47 CloseSocket(int sock) : sock_(sock) {}
51 CloseSocket cs(sock);
56 if (write(sock, actual_command.c_str(), actual_command.size() + 1) < 0) {
61 struct pollfd poll_sock = {sock, POLLIN, 0};
75 rc = TEMP_FAILURE_RETRY(read(sock, buffer, sizeof(buffer)))
    [all...]
  /external/javassist/src/main/javassist/tools/rmi/
ObjectImporter.java 155 Socket sock = new Socket(servername, port); local
156 OutputStream out = sock.getOutputStream();
165 InputStream in = new BufferedInputStream(sock.getInputStream());
172 sock.close();
224 Socket sock = new Socket(servername, port); local
226 sock.getOutputStream());
237 InputStream ins = new BufferedInputStream(sock.getInputStream());
250 sock.close();
  /external/nist-sip/java/gov/nist/javax/sip/stack/
TLSMessageProcessor.java 75 private ServerSocket sock; field in class:TLSMessageProcessor
106 this.sock = sipStack.getNetworkLayer().createSSLServerSocket(this.getPort(), 0,
108 ((SSLServerSocket) this.sock).setNeedClientAuth(false);
109 ((SSLServerSocket) this.sock).setUseClientMode(false);
110 ((SSLServerSocket) this.sock).setWantClientAuth(true);
112 ((SSLServerSocket) this.sock).setEnabledCipherSuites(enabledCiphers);
113 ((SSLServerSocket)this.sock).setWantClientAuth(true);
147 Socket newsock = sock.accept();
197 sock.close();
UDPMessageChannel.java 391 ((UDPMessageProcessor)this.messageProcessor).sock.send(keepalive);
705 DatagramSocket sock; local
713 sock = ((UDPMessageProcessor) messageProcessor).sock;
718 // sock = new DatagramSocket(0,sipStack.stackInetAddress);
721 sock = new DatagramSocket();
724 sock.send(reply);
726 sock.close();
769 DatagramSocket sock; local
771 sock = ((UDPMessageProcessor) messageProcessor).sock
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
OldAndroidDatagramTest.java 169 DatagramSocket sock = null; local
173 sock = new DatagramSocket();
175 sock.setSoTimeout(timeout);
176 sock.receive(pack);
185 if (sock != null) {
186 sock.close();
  /art/runtime/jdwp/
jdwp_socket.cc 215 int sock; local
225 sock = accept(listenSock, &addr.addrPlain, &addrlen);
226 if (sock < 0 && errno != EINTR) {
238 } while (sock < 0);
244 clientSock = sock;
  /external/android-clat/
clatd_microbenchmark.c 166 int sock = socket(AF_INET, SOCK_DGRAM | SOCK_NONBLOCK, IPPROTO_UDP); local
169 if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) == -1) die("SO_REUSEADDR");
172 if (setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) == -1) die("SO_RCVTIMEO");
179 if (bind(sock, (struct sockaddr *) &addr, sizeof(addr)) == -1) die ("bind");
181 return sock;
186 int sock = open_socket(); local
198 if (recvfrom(sock, buf, sizeof(buf), 0, NULL, NULL) == -1) die("recvfrom");
200 benchmark("Blocking", fd, sock, NUMPACKETS, 1, payload, sizeof(payload), payload_sum);
205 benchmark("No read", fd, sock, NUMPACKETS, 0, payload, sizeof(payload), payload_sum);
210 benchmark("Nonblocking", fd, sock, NUMPACKETS, 1, payload, sizeof(payload), payload_sum)
    [all...]
  /external/apache-http/src/org/apache/http/impl/conn/
DefaultClientConnectionOperator.java 145 Socket sock = plain_sf.createSocket(); local
146 conn.opening(sock, target);
149 Socket connsock = plain_sf.connectSocket(sock,
153 if (sock != connsock) {
154 sock = connsock;
155 conn.opening(sock, target);
168 prepareSocket(sock, context, params);
170 Socket layeredsock = layered_sf.createSocket(sock,
174 if (layeredsock != sock) {
179 conn.openCompleted(sf.isSecure(sock), params)
239 final Socket sock; local
    [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/libpcap/
pcap-bt-linux.c 85 int i, sock; local
88 sock = socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI);
89 if (sock < 0)
110 if (ioctl(sock, HCIGETDEVLIST, (void *) dev_list) < 0)
139 close(sock);
  /external/wpa_supplicant_8/src/radius/
radius_das.c 20 int sock; member in struct:radius_das_data
186 static void radius_das_receive(int sock, void *eloop_ctx, void *sock_ctx)
209 len = recvfrom(sock, buf, sizeof(buf), 0,
311 res = sendto(das->sock, wpabuf_head(rbuf),
380 das->sock = radius_das_open_socket(conf->port);
381 if (das->sock < 0) {
388 if (eloop_register_read_sock(das->sock, radius_das_receive, das, NULL))
403 if (das->sock >= 0) {
404 eloop_unregister_read_sock(das->sock);
405 close(das->sock);
    [all...]
  /ndk/sources/host-tools/make-3.81/
remote-cstms.c 151 int retsock, retport, sock;
174 sock = Rpc_TcpCreate (False, 0);
193 status = Rpc_Call (sock, &sin, (Rpc_Proc) CUSTOMS_IMPORT,
203 (void) close (sock);
212 (void) close (sock);
243 (void) sprintf (sock_buf, "%d", sock);
260 (void) close (sock);
149 int retsock, retport, sock; local
  /system/bt/tools/bdtool/
bdtool.c 199 const btsock_interface_t *sock = bt_interface->get_profile_interface(BT_PROFILE_SOCKETS_ID); local
202 int error = sock->listen(BTSOCK_RFCOMM, "meow", (const uint8_t *)&HFP_AG_UUID, 0, &rfcomm_fd, 0);
209 error = sock->listen(BTSOCK_SCO, NULL, NULL, 5, &sock_fd, 0);
227 const btsock_interface_t *sock = bt_interface->get_profile_interface(BT_PROFILE_SOCKETS_ID); local
230 int error = sock->connect(&bt_remote_bdaddr, BTSOCK_RFCOMM, (const uint8_t *)&HFP_AG_UUID, 0, &rfcomm_fd, 0);
241 error = sock->connect(&bt_remote_bdaddr, BTSOCK_SCO, NULL, 5, &sock_fd, 0);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
SinkChannelTest.java 476 SocketChannel sock = ssc.accept(); local
485 sock.close();
493 SocketChannel sock = ssc.accept(); local
503 assertEquals(-1, sock.read(target));

Completed in 2231 milliseconds

1 23 4 5 6 7 8 91011