/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
SSLSessionBindingListenerTest.java | 63 SSLSocket sock = (SSLSocket) SSLSocketFactory.getDefault() local 65 SSLSession ss = sock.getSession(); 77 SSLSocket sock = (SSLSocket) SSLSocketFactory.getDefault() local 79 SSLSession ss = sock.getSession();
|
/system/core/fastboot/ |
socket_mock.cpp | 120 std::unique_ptr<Socket> sock = std::move(events_.front().sock); local 122 return sock; 145 void SocketMock::AddAccept(std::unique_ptr<Socket> sock) { 146 events_.push(Event(EventType::kAccept, "", false, std::move(sock))); 151 : type(_type), message(_message), status(_status), sock(std::move(_sock)) {}
|
socket_test.cpp | 64 static bool SendString(Socket* sock, const std::string& message) { 65 return sock->Send(message.c_str(), message.length()); 70 static bool ReceiveString(Socket* sock, const std::string& message) { 72 ssize_t bytes = sock->ReceiveAll(&received[0], received.length(), kTestTimeoutMs); 175 std::unique_ptr<Socket> sock = Socket::NewServer(Socket::Protocol::kUdp, 0); local 184 sock->socket_send_buffers_function_ = [&buffers, &mock_return_value]( 196 EXPECT_TRUE(sock->Send(buffers)); 199 EXPECT_FALSE(sock->Send(buffers)); 202 EXPECT_FALSE(sock->Send(buffers)); 205 EXPECT_FALSE(sock->Send(buffers)) 212 std::unique_ptr<Socket> sock = Socket::NewServer(Socket::Protocol::kTcp, 0); local [all...] |
/system/core/liblog/ |
logd_writer.c | 53 .context.sock = -EBADF, 65 i = atomic_load(&logdLoggerWrite.context.sock); 67 int sock = TEMP_FAILURE_RETRY( local 69 if (sock < 0) { 77 if (TEMP_FAILURE_RETRY(connect(sock, (struct sockaddr*)&un, 84 i = atomic_exchange(&logdLoggerWrite.context.sock, ret); 89 close(sock); 91 ret = atomic_exchange(&logdLoggerWrite.context.sock, sock); 92 if ((ret >= 0) && (ret != sock)) { 104 int sock = atomic_exchange(&logdLoggerWrite.context.sock, negative_errno); local 130 int sock; local [all...] |
/system/core/logd/ |
LogListener.cpp | 146 int sock = android_get_control_socket(socketName); local 148 if (sock < 0) { // logd started up in init.sh 149 sock = socket_local_server( 153 if (setsockopt(sock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on))) { 157 return sock;
|
/system/netd/server/ |
ndc.cpp | 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) { 106 if (write(sock, final_cmd, strlen(final_cmd) + 1) < 0) { 114 return do_monitor(sock, 1) [all...] |
/system/vold/ |
vdc.cpp | 40 static int do_monitor(int sock, int stop_after_cmd); 41 static int do_cmd(int sock, int argc, char **argv); 46 int sock; local 75 while ((sock = socket_local_client(sockname, 87 exit(do_monitor(sock, 0)); 89 exit(do_cmd(sock, argc, argv)); 93 static int do_cmd(int sock, int argc, char **argv) { 111 if (TEMP_FAILURE_RETRY(write(sock, cmd.c_str(), cmd.length() + 1)) < 0) { 116 return do_monitor(sock, seq); 119 static int do_monitor(int sock, int stop_after_seq) [all...] |
/tools/tradefederation/core/src/com/android/tradefed/util/ |
Alarm.java | 75 for (Socket sock : mInterruptSockets) { 77 sock.close();
|
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
TCPMessageProcessor.java | 68 private ServerSocket sock; field in class:TCPMessageProcessor 95 this.sock = sipStack.getNetworkLayer().createServerSocket(getPort(), 0, getIpAddress()); 99 super.setIpAddress(sock.getInetAddress()); 133 Socket newsock = sock.accept(); 179 sock.close();
|
/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...] |
/external/apache-http/android/src/android/net/http/ |
HttpConnection.java | 54 Socket sock = new Socket(mHost.getHostName(), mHost.getPort()); local 56 conn.bind(sock, params);
|
/external/apache-http/src/org/apache/http/conn/ |
MultihomePlainSocketFactory.java | 95 * @param sock socket to connect to any of the given addresses 105 public Socket connectSocket(Socket sock, String host, int port, 117 if (sock == null) 118 sock = createSocket(); 128 sock.bind(isa); 141 sock.connect(new InetSocketAddress(address, port), timeout); 147 sock = new Socket(); 155 return sock; 164 * @param sock the connected socket 170 public final boolean isSecure(Socket sock) [all...] |
/external/apache-http/src/org/apache/http/conn/scheme/ |
PlainSocketFactory.java | 89 public Socket connectSocket(Socket sock, String host, int port, 101 if (sock == null) 102 sock = createSocket(); 112 sock.bind(isa); 124 sock.connect(remoteAddress, timeout); 128 return sock; 138 * @param sock the connected socket 144 public final boolean isSecure(Socket sock) 147 if (sock == null) { 153 if (sock.getClass() != Socket.class) [all...] |
/external/boringssl/src/tool/ |
server.cc | 251 int sock = -1; local 252 if (!listener.Accept(&sock)) { 256 BIO *bio = BIO_new_socket(sock, BIO_CLOSE); 272 result = TransferData(ssl.get(), sock);
|
/external/iputils/ninfod/ |
ninfod.h | 58 int sock; member in struct:packetcontext 78 extern int sock; /* ninfod.c */
|
/external/libnl/src/lib/ |
utils.c | 101 struct nl_sock *sock; local 103 if (!(sock = nl_socket_alloc())) 106 return sock; 168 struct nl_cache *nl_cli_alloc_cache(struct nl_sock *sock, const char *name, 174 if ((err = ac(sock, &cache)) < 0)
|
/external/libnl/src/ |
nf-ct-add.c | 50 struct nl_sock *sock; local 130 sock = nl_cli_alloc_socket(); 131 nl_cli_connect(sock, NETLINK_NETFILTER); 133 if ((err = nfnl_ct_add(sock, ct, nlflags)) < 0)
|
nf-ct-list.c | 50 struct nl_sock *sock; local 129 sock = nl_cli_alloc_socket(); 130 nl_cli_connect(sock, NETLINK_NETFILTER); 131 ct_cache = nl_cli_ct_alloc_cache(sock);
|
nf-exp-list.c | 50 struct nl_sock *sock; local 130 sock = nl_cli_alloc_socket(); 131 nl_cli_connect(sock, NETLINK_NETFILTER); 132 exp_cache = nl_cli_exp_alloc_cache(sock);
|
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-class-add.c | 53 struct nl_sock *sock; local 66 sock = nl_cli_alloc_socket(); 67 nl_cli_connect(sock, NETLINK_ROUTE); 69 link_cache = nl_cli_link_alloc_cache(sock); 151 if ((err = rtnl_class_add(sock, class, flags)) < 0)
|
nl-cls-add.c | 53 struct nl_sock *sock; local 66 sock = nl_cli_alloc_socket(); 67 nl_cli_connect(sock, NETLINK_ROUTE); 69 link_cache = nl_cli_link_alloc_cache(sock); 159 if ((err = rtnl_cls_add(sock, cls, flags)) < 0)
|
nl-cls-delete.c | 17 static struct nl_sock *sock; variable in typeref:struct:nl_sock 59 if ((err = rtnl_cls_delete(sock, cls, 0)) < 0) 76 cache = nl_cli_cls_alloc_cache(sock, ifindex, parent); 95 sock = nl_cli_alloc_socket(); 96 nl_cli_connect(sock, NETLINK_ROUTE); 97 link_cache = nl_cli_link_alloc_cache(sock);
|
nl-cls-list.c | 17 static struct nl_sock *sock; variable in typeref:struct:nl_sock 54 cache = nl_cli_cls_alloc_cache(sock, ifindex, parent); 73 sock = nl_cli_alloc_socket(); 74 nl_cli_connect(sock, NETLINK_ROUTE); 75 link_cache = nl_cli_link_alloc_cache(sock);
|
nl-qdisc-add.c | 50 struct nl_sock *sock; local 63 sock = nl_cli_alloc_socket(); 64 nl_cli_connect(sock, NETLINK_ROUTE); 66 link_cache = nl_cli_link_alloc_cache(sock); 142 if ((err = rtnl_qdisc_add(sock, qdisc, flags)) < 0)
|