Searched refs:port (Results 1 - 25 of 117) sorted by relevance

12345

/system/core/base/
H A Dparsenetaddress_test.cpp25 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 Dparsenetaddress.cpp27 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/bt/udrv/ulinux/
H A Duipc_linux.h28 unsigned int port; member in struct:__anon1308
/system/connectivity/apmanager/
H A Dfirewall_proxy_interface.h29 uint16_t port) = 0;
31 uint16_t port) = 0;
/system/core/adb/
H A Dconsole.cpp55 // 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...]
H A Dtransport_local.cpp41 // Android Wear has been using port 5601 in all of its documentation/tooling,
43 // Avoid stomping on their port by limiting the number of emulators that can be
93 void local_connect(int port) { argument
95 local_connect_arbitrary_ports(port-1, port, &dummy);
133 int port = DEFAULT_ADB_LOCAL_TRANSPORT_PORT; local
137 for ( ; count > 0; count--, port += 2 ) {
138 local_connect(port);
151 int port = (int) (uintptr_t) arg; local
159 serverfd = network_inaddr_any_server(port, SOCK_STREA
232 const int port = (int) (uintptr_t) arg; local
291 local_init(int port) argument
[all...]
/system/connectivity/apmanager/dbus/
H A Dfirewalld_dbus_proxy.cc52 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 Dpermission_broker_dbus_proxy.cc63 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/core/include/cutils/
H A Dsockets.h106 int socket_loopback_client(int port, int type);
107 cutils_socket_t socket_network_client(const char* host, int port, int type);
108 int socket_network_client_timeout(const char* host, int port, int type,
110 int socket_loopback_server(int port, int type);
116 cutils_socket_t socket_inaddr_any_server(int port, int type);
135 * Returns the local port the socket is bound to or -1 on error.
/system/connectivity/shill/
H A Dconnection_info_reader_unittest.cc225 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 Dmock_async_connection.h32 MOCK_METHOD2(Start, bool(const IPAddress& address, int port));
H A Dhttp_url.cc47 int port = 0; local
52 port = kDefaultHTTPPort;
57 port = kDefaultHTTPSPort;
74 if (!base::StringToInt(host_parts[1], &port)) {
81 port_ = port;
H A Dasync_connection.h36 // port, and it will notify the caller when the connection
49 // Open a connection given an IP address and port (in host order).
63 virtual bool Start(const IPAddress& address, int port);
77 // Initiate a socket connection to given IP address and port (in host order).
78 int ConnectTo(const IPAddress& address, int port);
H A Dhttp_url_unittest.cc41 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
/system/core/base/include/android-base/
H A Dparsenetaddress.h25 // Parses |address| into |host| and |port|.
27 // If |address| doesn't contain a port number, the default value is taken from
28 // |port|. If |canonical_address| is non-null it will be set to "host:port" or
29 // "[host]:port" as appropriate.
32 bool ParseNetAddress(const std::string& address, std::string* host, int* port,
/system/bt/stack/rfcomm/
H A Dport_api.c86 ** to establish serial port connection to the peer device,
144 /* For the server side always allocate a new port. On the client side */
148 /* if existing port is also a client port */
208 /* server doesn't need to release port when closing */
257 p_port = &rfc_cb.port.port[handle - 1];
276 ** Description This function is called to close the server port.
293 p_port = &rfc_cb.port.port[handl
[all...]
/system/webservd/webservd/
H A Dconfig.cc38 const char kPortKey[] = "port";
47 "port": 80,
52 "port": 443,
61 int port = 0; local
62 if (!handler_value->GetInteger(kPortKey, &port)) {
70 if (port < 1 || port > 0xFFFF) {
75 "Invalid port value: %d", port);
78 handler_config->port
[all...]
H A Dfirewalld_firewall.cc33 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
/system/extras/multinetwork/
H A Dcommon.cpp125 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/core/libcutils/
H A Dsocket_inaddr_any_server_unix.c32 /* 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 Dsocket_inaddr_any_server_windows.c37 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 Dsocket_loopback_client_unix.c32 /* 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 Dsocket_loopback_server_unix.c34 /* open listen() port on loopback interface */
35 int socket_loopback_server(int port, int type) argument
42 addr.sin_port = htons(port);
H A Dsocket_network_client_windows.c33 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);
/system/tpm/trunks/ftdi/
H A Dsupport.h37 int set_bits_high(struct mpsse_context* mpsse, int port);
38 int set_bits_low(struct mpsse_context* mpsse, int port);

Completed in 1316 milliseconds

12345