Home
last modified time | relevance | path

Searched refs:port_str (Results 1 – 25 of 30) sorted by relevance

12

/external/llvm-project/lldb/unittests/Host/
DSocketTest.cpp36 std::string port_str; in TEST_P() local
39 EXPECT_TRUE(Socket::DecodeHostAndPort("localhost:1138", host_str, port_str, in TEST_P()
42 EXPECT_STREQ("1138", port_str.c_str()); in TEST_P()
46 EXPECT_FALSE(Socket::DecodeHostAndPort("google.com:65536", host_str, port_str, in TEST_P()
52 EXPECT_FALSE(Socket::DecodeHostAndPort("google.com:-1138", host_str, port_str, in TEST_P()
58 EXPECT_FALSE(Socket::DecodeHostAndPort("google.com:65536", host_str, port_str, in TEST_P()
65 Socket::DecodeHostAndPort("12345", host_str, port_str, port, &error)); in TEST_P()
67 EXPECT_STREQ("12345", port_str.c_str()); in TEST_P()
72 Socket::DecodeHostAndPort("*:0", host_str, port_str, port, &error)); in TEST_P()
74 EXPECT_STREQ("0", port_str.c_str()); in TEST_P()
[all …]
/external/tpm2-tss/src/util/
Dio.c189 char port_str[MAX_PORT_STR_LEN]; in socket_connect() local
210 ret = snprintf(port_str, sizeof(port_str), "%u", port); in socket_connect()
216 ret = getaddrinfo (hostname, port_str, &hints, &retp); in socket_connect()
241 h, port_str); in socket_connect()
250 h, port_str, WSAGetLastError(), strerror (WSAGetLastError())); in socket_connect()
253 h, port_str, errno, strerror (errno)); in socket_connect()
/external/llvm-project/lldb/source/Host/common/
DUDPSocket.cpp65 std::string port_str; in Connect() local
67 if (!DecodeHostAndPort(name, host_str, port_str, port, &error)) in Connect()
79 int err = ::getaddrinfo(host_str.c_str(), port_str.c_str(), &hints, in Connect()
88 host_str.c_str(), port_str.c_str(), err, gai_strerror(err)); in Connect()
DSocket.cpp177 std::string port_str; in TcpListen() local
179 if (!DecodeHostAndPort(host_and_port, host_str, port_str, port, &error)) in TcpListen()
276 std::string &host_str, std::string &port_str, in DecodeHostAndPort() argument
283 port_str = matches[2].str(); in DecodeHostAndPort()
288 port = StringConvert::ToUInt32(port_str.c_str(), UINT32_MAX, 10, &ok); in DecodeHostAndPort()
304 port_str.clear(); in DecodeHostAndPort()
306 port_str = std::string(host_and_port); in DecodeHostAndPort()
DTCPSocket.cpp158 std::string port_str; in Connect() local
160 if (!DecodeHostAndPort(name, host_str, port_str, port, &error)) in Connect()
194 std::string port_str; in Listen() local
196 if (!DecodeHostAndPort(name, host_str, port_str, port, &error)) in Listen()
/external/autotest/client/cros/cellular/
Dether_io_rf_switch.py126 port_str = 'Invalid'
128 port_str = str(port)
129 print 'Port %s (0x%x)' % (port_str, raw_status)
/external/rust/crates/quiche/deps/boringssl/src/crypto/bio/
Dsocket_helper.c45 const char *port_str) { in OPENSSL_MSVC_PRAGMA()
55 ret = getaddrinfo(hostname, port_str, &hint, &result); in OPENSSL_MSVC_PRAGMA()
Dinternal.h88 const char *port_str);
Dconnect.c527 int BIO_set_conn_port(BIO *bio, const char *port_str) { in BIO_set_conn_port() argument
528 return BIO_ctrl(bio, BIO_C_SET_CONNECT, 1, (void*) port_str); in BIO_set_conn_port()
/external/boringssl/src/crypto/bio/
Dsocket_helper.c45 const char *port_str) { in OPENSSL_MSVC_PRAGMA()
55 ret = getaddrinfo(hostname, port_str, &hint, &result); in OPENSSL_MSVC_PRAGMA()
Dinternal.h88 const char *port_str);
Dconnect.c527 int BIO_set_conn_port(BIO *bio, const char *port_str) { in BIO_set_conn_port() argument
528 return BIO_ctrl(bio, BIO_C_SET_CONNECT, 1, (void*) port_str); in BIO_set_conn_port()
/external/igt-gpu-tools/lib/
Digt_chamelium_stream.c158 char port_str[16]; in chamelium_stream_connect() local
166 snprintf(port_str, sizeof(port_str), "%u", client->port); in chamelium_stream_connect()
170 ret = getaddrinfo(client->host, port_str, &hints, &results); in chamelium_stream_connect()
/external/llvm-project/lldb/tools/lldb-server/
DAcceptor.cpp98 std::string port_str; in Create() local
101 if (Socket::DecodeHostAndPort(name, host_str, port_str, port, nullptr)) in Create()
/external/llvm-project/lldb/tools/debugserver/source/
Ddebugserver.cpp718 char port_str[64]; in PortWasBoundCallbackNamedPipe() local
720 ::snprintf(port_str, sizeof(port_str), "%u", port); in PortWasBoundCallbackNamedPipe()
722 ::write(fd, port_str, port_str_len + 1); in PortWasBoundCallbackNamedPipe()
1360 std::string port_str = in main() local
1363 port = strtoul(port_str.c_str(), &end_ptr, 0); in main()
1364 if (end_ptr < port_str.c_str() + port_str.size()) in main()
/external/wpa_supplicant_8/wpa_supplicant/
Dctrl_iface_udp.c398 char port_str[40]; local
467 os_snprintf(port_str, sizeof(port_str), "udp:%d", port);
469 wpa_s->conf->ctrl_interface = os_strdup(port_str);
/external/llvm-project/lldb/include/lldb/Host/
DSocket.h107 std::string &host_str, std::string &port_str,
/external/tpm2-tss/src/tss2-tcti/
Dtcti-mssim.c449 string_to_port (char port_str[6]) in string_to_port()
453 if (sscanf (port_str, "%" SCNu32, &port) == EOF || port > UINT16_MAX) { in string_to_port()
/external/webrtc/examples/peerconnection/client/
Dmain_wnd.cc338 std::string port_str(GetWindowText(edit2_)); in OnDefaultAction() local
339 int port = port_str.length() ? atoi(port_str.c_str()) : 0; in OnDefaultAction()
/external/deqp-deps/amber/src/vulkan/
Dengine_vulkan_debugger.cc820 auto port_str = getenv("VK_DEBUGGER_PORT"); in Connect() local
821 if (!port_str) { in Connect()
824 int port = atoi(port_str); in Connect()
827 std::string(port_str) + "')"); in Connect()
/external/curl/tests/server/
Dsws.c1883 char port_str[11]; in main() local
1884 const char *location_str = port_str; in main()
1931 location_str = port_str; in main()
1938 location_str = port_str; in main()
2166 msnprintf(port_str, sizeof(port_str), "port %hu", port); in main()
/external/libiio/src/
Dnetwork.c1441 char port_str[6]; in network_create_context() local
1457 iio_snprintf(port_str, sizeof(port_str), "%hu", port); in network_create_context()
1458 ret = getaddrinfo(addr_str, port_str, &hints, &res); in network_create_context()
/external/rust/crates/quiche/deps/boringssl/src/include/openssl/
Dbio.h551 OPENSSL_EXPORT int BIO_set_conn_port(BIO *bio, const char *port_str);
/external/boringssl/src/include/openssl/
Dbio.h555 OPENSSL_EXPORT int BIO_set_conn_port(BIO *bio, const char *port_str);
/external/rust/crates/criterion/src/
Dlib.rs131 Ok(port_str) => {
132 let port: u16 = port_str.parse().ok()?;

12