/system/core/libcutils/ |
H A D | socket_loopback_client_unix.c | 32 /* Connect to port on the loopback IP interface. type is 36 int socket_loopback_client(int port, int type) argument 43 addr.sin_port = htons(port);
|
H A D | socket_inaddr_any_server_unix.c | 32 /* open listen() port on any interface */ 33 int socket_inaddr_any_server(int port, int type) argument 40 addr.sin6_port = htons(port);
|
H A D | socket_inaddr_any_server_windows.c | 37 SOCKET socket_inaddr_any_server(int port, int type) { argument 47 // Enforce exclusive addresses so nobody can steal the port from us (1), 61 // Bind the socket to our local port. 65 addr.sin6_port = htons(port);
|
H A D | socket_loopback_server_unix.c | 34 /* open listen() port on loopback interface */ 35 int socket_loopback_server(int port, int type) argument 42 addr.sin_port = htons(port);
|
H A D | socket_network_client_windows.c | 33 SOCKET socket_network_client(const char* host, int port, int type) { argument 38 // First resolve the host and port parameters into a usable network address. 45 snprintf(port_str, sizeof(port_str), "%d", port);
|
H A D | socket_network_client_unix.c | 41 // Connect to the given host and port. 46 int socket_network_client_timeout(const char* host, int port, int type, int timeout, argument 54 snprintf(port_str, sizeof(port_str), "%d", port); 122 int socket_network_client(const char* host, int port, int type) { argument 124 return socket_network_client_timeout(host, port, type, 0, &getaddrinfo_error);
|
/system/bt/udrv/ulinux/ |
H A D | uipc_linux.h | 28 unsigned int port; member in struct:__anon1312
|
/system/core/base/ |
H A D | parsenetaddress_test.cpp | 25 int port = 123; local 28 ParseNetAddress("www.google.com", &host, &port, &canonical, &error)); 31 EXPECT_EQ(123, port); 34 ParseNetAddress("www.google.com:666", &host, &port, &canonical, &error)); 37 EXPECT_EQ(666, port); 42 int port = 123; local 44 EXPECT_TRUE(ParseNetAddress("1.2.3.4", &host, &port, &canonical, &error)); 47 EXPECT_EQ(123, port); 49 EXPECT_TRUE(ParseNetAddress("1.2.3.4:666", &host, &port, &canonical, &error)); 52 EXPECT_EQ(666, port); 57 int port = 123; local 84 int port; local 122 int port = 42; local [all...] |
H A D | parsenetaddress.cpp | 27 bool ParseNetAddress(const std::string& address, std::string* host, int* port, argument 65 if (sscanf(port_str.c_str(), "%d", port) != 1 || *port <= 0 || 66 *port > 65535) { 67 *error = StringPrintf("bad port number '%s' in '%s'", port_str.c_str(), 75 StringPrintf(ipv6 ? "[%s]:%d" : "%s:%d", host->c_str(), *port);
|
/system/webservd/webservd/ |
H A D | firewalld_firewall.cc | 33 uint16_t port, 37 proxy_->PunchTcpHoleAsync(port, interface_name, success_cb, failure_cb); 32 PunchTcpHoleAsync( uint16_t port, const std::string& interface_name, const base::Callback<void(bool)>& success_cb, const base::Callback<void(brillo::Error*)>& failure_cb) argument
|
H A D | permission_broker_firewall.cc | 50 uint16_t port, 56 proxy_->RequestTcpPortAccessAsync(port, interface_name, dbus_fd, success_cb, 49 PunchTcpHoleAsync( uint16_t port, const std::string& interface_name, const base::Callback<void(bool)>& success_cb, const base::Callback<void(brillo::Error*)>& failure_cb) argument
|
/system/connectivity/apmanager/dbus/ |
H A D | firewalld_dbus_proxy.cc | 52 uint16_t port) { 60 if (!proxy_->PunchUdpHole(port, interface, &success, &error)) { 61 LOG(ERROR) << "Failed to request UDP port access: " 66 LOG(ERROR) << "Access request for UDP port " << port 70 LOG(INFO) << "Access granted for UDP port " << port 76 uint16_t port) { 84 if (!proxy_->PlugUdpHole(port, interface, &success, &error)) { 85 LOG(ERROR) << "Failed to release UDP port acces 51 RequestUdpPortAccess(const string& interface, uint16_t port) argument 75 ReleaseUdpPortAccess(const string& interface, uint16_t port) argument [all...] |
H A D | permission_broker_dbus_proxy.cc | 63 uint16_t port) { 75 if (!proxy_->RequestUdpPortAccess(port, interface, fd, &allowed, &error)) { 76 LOG(ERROR) << "Failed to request UDP port access: " 81 LOG(ERROR) << "Access request for UDP port " << port 85 LOG(INFO) << "Access granted for UDP port " << port 91 uint16_t port) { 99 if (!proxy_->ReleaseUdpPort(port, interface, &success, &error)) { 100 LOG(ERROR) << "Failed to release UDP port acces 62 RequestUdpPortAccess(const string& interface, uint16_t port) argument 90 ReleaseUdpPortAccess(const string& interface, uint16_t port) argument [all...] |
/system/connectivity/shill/ |
H A D | http_url.cc | 47 int port = 0; local 52 port = kDefaultHTTPPort; 57 port = kDefaultHTTPSPort; 74 if (!base::StringToInt(host_parts[1], &port)) { 81 port_ = port;
|
H A D | http_url_unittest.cc | 41 port(in_port), 47 int port; member in struct:shill::StringAndResult 63 EXPECT_EQ(GetParam().port, url_.port()); 76 StringAndResult("http://www.foo.com:", false), // Colon but no port 77 StringAndResult("http://www.foo.com:x", false), // Non-numeric port
|
H A D | async_connection.cc | 52 bool AsyncConnection::Start(const IPAddress& address, int port) { argument 76 int ret = ConnectTo(address, port); 126 int AsyncConnection::ConnectTo(const IPAddress& address, int port) { argument 138 iaddr.sin_port = htons(port); 149 iaddr6.sin6_port = htons(port);
|
H A D | connection_info_reader_unittest.cc | 225 uint16_t port = 0; local 228 EXPECT_FALSE(reader_.ParsePort("", &port, &is_source)); 229 EXPECT_FALSE(reader_.ParsePort("a", &port, &is_source)); 230 EXPECT_FALSE(reader_.ParsePort("0", &port, &is_source)); 231 EXPECT_FALSE(reader_.ParsePort("sport=", &port, &is_source)); 232 EXPECT_FALSE(reader_.ParsePort("sport=a", &port, &is_source)); 233 EXPECT_FALSE(reader_.ParsePort("sport=-1", &port, &is_source)); 234 EXPECT_FALSE(reader_.ParsePort("sport=65536", &port, &is_source)); 235 EXPECT_FALSE(reader_.ParsePort("dport=", &port, &is_source)); 236 EXPECT_FALSE(reader_.ParsePort("dport=a", &port, [all...] |
H A D | http_url.h | 46 int port() const { return port_; } function in class:shill::HTTPURL
|
/system/core/adb/ |
H A D | console.cpp | 55 // Return the console port of the currently connected emulator (if any) or -1 if 60 int port; local 61 return (sscanf(serial, "emulator-%d", &port) == 1) ? port : -1; 74 int port; local 77 if (sscanf(device.c_str(), "emulator-%d", &port) == 1) { 91 return port; 95 int port = adb_get_emulator_console_port(serial); local 96 if (port == -1) { 101 int fd = network_loopback_client(port, SOCK_STREA [all...] |
/system/bt/vendor_libs/test_vendor_lib/src/ |
H A D | test_channel_transport.cc | 32 TestChannelTransport::TestChannelTransport(bool enabled, int port) argument 33 : enabled_(enabled), port_(port) {} 50 LOG_INFO(LOG_TAG, "port: %d", port_);
|
/system/core/adb/daemon/ |
H A D | main.cpp | 131 // Don't listen on a port (default 5037) if running in secure mode. 141 D("Local port disabled"); 198 // If one of these properties is set, also listen on that port. 200 // on the default port. 202 property_get("service.adb.tcp.port", prop_port, ""); 204 property_get("persist.adb.tcp.port", prop_port, ""); 207 int port; local 208 if (sscanf(prop_port, "%d", &port) == 1 && port > 0) { 209 D("using port [all...] |
/system/extras/multinetwork/ |
H A D | common.cpp | 125 char port[sizeof("65535")]; local 128 port, sizeof(port), 131 if (port[0] == '0' || port[0] == '\0') { 134 return (is_ipv6 ? "[" : "") + std::string(host) + (is_ipv6 ? "]:" : ":") + std::string(port);
|
/system/weaved/buffet/ |
H A D | avahi_mdns_client.cc | 76 uint16_t port, 81 if (prev_port_ == port && prev_service_type_ == service_type && 104 if (prev_port_ == port && prev_service_type_ == service_type) { 111 prev_port_ = port; 119 service_name_.c_str(), service_type.c_str(), nullptr, nullptr, port, 154 uint16_t port = prev_port_; local 157 PublishService(service_type, port, txt); 75 PublishService(const std::string& service_type, uint16_t port, const std::vector<std::string>& txt) argument
|
H A D | socket_stream.cc | 66 int ConnectSocket(const std::string& host, uint16_t port) { argument 67 std::string service = std::to_string(port); 147 uint16_t port) { 148 int socket_fd = ConnectSocket(host, port); 145 ConnectBlocking( const std::string& host, uint16_t port) argument
|
/system/bt/include/ |
H A D | bte.h | 45 BTE_MODE_SERIAL_APP, /* OUT OUT OFF OFF OFF Sample serial port application */ 76 #define BT_HCISU_USERIAL_OPEN (0) /* open serial port calling USERIAL_Open() */ 77 #define BT_HCISU_USERIAL_CLOSE (1) /* close userial port */ 89 UINT8 port; /* port number */ member in struct:tHCISU_USERIAL_MSG_tag 94 extern void bte_hcisu_userial_oper( tUSERIAL_MSG_CBACK *p_cback, UINT8 port, UINT8 op, UINT8 option ); 97 extern int (*p_bte_hci_send)(UINT16 port, BT_HDR *p_msg);
|