/commonlibrary/rust/ylong_runtime/ylong_runtime/benches/ |
D | ylong_tokio_udp.rs | 84 let port = 8081; in ylong_udp_send_recv() localVariable 89 + &*(port + 2 * i).to_string()) in ylong_udp_send_recv() 93 + &*(port + 2 * i + 1).to_string()) in ylong_udp_send_recv() 130 let port = 8121; in tokio_udp_send_recv() localVariable 135 let sender_addr = basic_addr.to_owned() + &*(port + 2 * i).to_string(); in tokio_udp_send_recv() 136 let receiver_addr = basic_addr.to_owned() + &*(port + 2 * i + 1).to_string(); in tokio_udp_send_recv() 170 let port = 8141; in ylong_udp_send_to_recv_from() localVariable 175 + &*(port + 2 * i).to_string()) in ylong_udp_send_to_recv_from() 179 + &*(port + 2 * i + 1).to_string()) in ylong_udp_send_to_recv_from() 212 let port = 8161; in tokio_udp_send_to_recv_from() localVariable [all …]
|
D | ylong_tokio_tcp.rs | 24 …($runtime: expr, $bench: ident, $server: ident, $client: ident, $port: literal, $task_num: literal… 58 let port = $port; localVariable 62 let addr = basic_addr.to_owned() + &*(port + i).to_string(); 76 …($bench: ident, $server: ident, $client: ident, $port: literal, $task_num: literal, $loop_num: lit… 109 let port = $port; localVariable 113 let addr = (basic_addr.to_owned() + &*(port + i).to_string())
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/ |
D | addr.rs | 110 let (ip, port) = *self; in to_socket_addrs() 112 IpAddr::V4(ip_type) => (ip_type, port).to_socket_addrs(), in to_socket_addrs() 113 IpAddr::V6(ip_type) => (ip_type, port).to_socket_addrs(), in to_socket_addrs() 122 let (ip, port) = *self; in to_socket_addrs() 123 SocketAddrV4::new(ip, port).to_socket_addrs() in to_socket_addrs() 131 let (ip, port) = *self; in to_socket_addrs() 132 SocketAddrV6::new(ip, port, 0, 0).to_socket_addrs() in to_socket_addrs() 140 let (host, port) = *self; in to_socket_addrs() 143 let addr = SocketAddrV4::new(addr, port); in to_socket_addrs() 148 let addr = SocketAddrV6::new(addr, port, 0, 0); in to_socket_addrs() [all …]
|
/commonlibrary/rust/ylong_http/ylong_http_client/tests/common/ |
D | mod.rs | 29 pub port: u16, 45 pub port: u16, 127 let port = addr.port(); localVariable 154 port, 164 let mut port = 10000; localVariable 166 let addr = std::net::SocketAddr::from(([127, 0, 0, 1], port)); 170 port += 1; 171 if port == u16::MAX { 172 port = 10000; 178 let port = listener.local_addr().unwrap().port(); localVariable [all …]
|
D | async_utils.rs | 341 Port: $handle.port,
|
D | sync_utils.rs | 342 Port: $handle.port,
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/ |
D | normalizer.rs | 82 let port; in format() localVariable 84 if let Some(req_port) = uri.port().and_then(|port| port.as_u16().ok()) { in format() 85 port = req_port; in format() 88 Scheme::HTTPS => port = 443, in format() 89 Scheme::HTTP => port = 80, in format() 95 new_uri = new_uri.authority(format!("{}:{}", host.as_str(), port).as_bytes()); in format()
|
/commonlibrary/rust/ylong_http/ylong_http/src/request/ |
D | uri.rs | 176 pub fn port(&self) -> Option<&Port> { in port() method 177 self.authority.as_ref().and_then(|auth| auth.port()) in port() 305 if let Some(port) = self.port() { in to_string() 307 builder.push_str(port.as_str()); in to_string() 586 port: Option<Port>, field 636 pub fn port(&self) -> Option<&Port> { in port() method 637 self.port.as_ref() in port() 652 if let Some(ref p) = self.port { in to_str() 672 (self.host, self.port) in into_parts() 696 if let Some(port) = self.port() { in to_string() [all …]
|
/commonlibrary/ets_utils/js_api_module/uri/ |
D | js_uri.cpp | 253 uriData_.port = -1; in AnalysisHostAndPath() 284 std::string port = data_.substr(pos + 1); in AnalysisPort() local 285 if (!CheckCharacter(port, g_rulePort, true)) { in AnalysisPort() 288 } else if (CheckCharacter(port, g_ruleDigit, false)) { in AnalysisPort() 289 if (port.size() == 0) { in AnalysisPort() 292 uriData_.port = std::stoi(port); in AnalysisPort() 341 if (uriData_.port != other.uriData_.port) { in Equals() 444 if (uriData_.port != -1) { in Split() 445 normalizeUri += ":" + std::to_string(uriData_.port); in Split() 504 return std::to_string(uriData_.port); in GetPort()
|
D | js_uri.h | 30 int port = -1; member
|
/commonlibrary/ets_utils/js_api_module/url/src/ |
D | js_url.ts | 62 port: string; property 598 this.port_ = nativeUrl.port; 648 urlHelper.port_ = nativeUrl.port; 761 this.port_ = this.c_info.port; 765 this.port_ = this.c_info.port; 769 get port(): string { 772 set port(port) { 773 if (this.host_ === '' || this.protocol_ === 'file:' || port === '') { 776 this.c_info.port = port; 777 this.port_ = this.c_info.port; [all …]
|
/commonlibrary/ets_utils/js_api_module/uri/src/ |
D | js_uri.ts | 27 port: string; property 131 get port(): string { method in URI 132 return this.uricalss.port;
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/ |
D | connector.rs | 94 let port = uri.port().unwrap().as_u16().unwrap(); in connect() localVariable 124 tunnel(tcp_stream, host, port, auth)? in connect() 145 port: u16, in tunnel()
|
/commonlibrary/ets_utils/js_api_module/url/ |
D | js_url.cpp | 320 urlinfo.port = -1; in AnalysisPort() 325 urlinfo.port = it; in AnalysisPort() 837 std::string port = strHost.substr(pos + 1); in AnalyHostPath() local 839 AnalysisPort(port, urlinfo, flags); in AnalyHostPath() 885 std::string port = strHost.substr(pos + 1); in AnalysisNoDefaultProtocol() local 887 AnalysisPort(port, urlinfo, flags); in AnalysisNoDefaultProtocol() 922 std::string port = strHost.substr(pos + 1); in AnalysisOnlyHost() local 924 AnalysisPort(port, urlinfo, flags); in AnalysisOnlyHost() 972 std::string port = strHost.substr(pos + 1); in ParsingHostAndPath() local 974 AnalysisPort(port, urlinfo, flags); in ParsingHostAndPath() [all …]
|
D | js_url.h | 49 int port = -1; member
|
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/linux/ |
D | socket_addr.rs | 36 sin_port: addr.port().to_be(), in socket_addr_trans() 56 sin6_port: addr.port().to_be(), in socket_addr_trans()
|
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/ |
D | socket_addr.rs | 45 sin_port: addr.port().to_be(), in socket_addr_trans() 71 sin6_port: addr.port().to_be(), in socket_addr_trans()
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/examples/ |
D | ylong_runtime_tcp.rs | 55 let port = 8181; in ylong_tcp_send_recv() localVariable 58 let addr = (basic_addr.to_owned() + &*(port + i).to_string()) in ylong_tcp_send_recv()
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/ |
D | connector.rs | 123 let port = uri.port().unwrap().as_u16().unwrap(); in connect() localVariable 153 tcp = tunnel(tcp, host, port, auth).await?; in connect() 175 port: u16, in tunnel()
|
/commonlibrary/ets_utils/js_api_module/ |
D | mozilla_docs.txt | 53 port: string;
|
/commonlibrary/ets_utils/ |
D | README.en.md | 29 │ ├── port # port attribute 61 │ ├── port # port attribute 123 | port | Obtains the port component of this URI; returns **-1** if **port** is not defined. The re… 304 27. port 307 gaogao.port // => "99";
|
D | README.md | 29 │ ├── port # port属性 61 │ ├── port # port属性 205 | port | 返回此 URI 的port部分,如果port未定义,则返回 -1。URI 的port组件(如果已定义)是一个非负整数。 | 470 27、port 473 gaogao.port // => "99";
|