Searched defs:port (Results 1 - 25 of 63) sorted by relevance

123

/system/core/libcutils/
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_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_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);
H A Dsocket_network_client_unix.c41 // 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 Duipc_linux.h28 unsigned int port; member in struct:__anon1308
/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/webservd/webservd/
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
H A Dpermission_broker_firewall.cc50 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 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/connectivity/shill/
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 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
H A Dasync_connection.cc52 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 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 Dhttp_url.h46 int port() const { return port_; } function in class:shill::HTTPURL
/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...]
/system/bt/vendor_libs/test_vendor_lib/src/
H A Dtest_channel_transport.cc32 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 Dmain.cpp131 // 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 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/weaved/buffet/
H A Davahi_mdns_client.cc76 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 Dsocket_stream.cc66 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 Dbte.h45 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);

Completed in 566 milliseconds

123