/ohos5.0/docs/zh-cn/device-dev/kernel/ |
H A D | kernel-small-debug-shell-net-netstat.md | 6 netstat是控制台命令,是一个监测TCP/IP网络的非常有用的工具,它可以显示实际的网络连接以及每一个网络接口设备的状态信息。netstat用于显示与TCP、UDP协议相关的统计数据,一般用于检… 57 | Recv-Q | 未被用户读取的数据量。<br/>对于Listen TCP,此值为已完成三次握手,但是未被用户accept的TCP连接的数量。 | 58 | Send-Q | 对TCP连接,已发送但未确认的数据量。<br/>对UDP连接,由于IP地址解析未完成而缓存的数据量。 | 61 | State | TCP连接状态,UDP此项无意义。 |
|
H A D | kernel-small-debug-shell-net-arp.md | 6 …一张IP和MAC地址对应的表,即ARP缓存,主机要往一个局域网内的目的IP地址发送IP包时,就可以从ARP缓存表中查询到目的MAC地址。ARP缓存是由TCP/IP协议栈维护的,用户可通过ARP命令… 32 - arp命令用来查询和修改TCP/IP协议栈的ARP缓存表,增加非同一子网内的IP地址的ARP表项是没有意义的,协议栈会返回失败。 34 - 命令需要启动TCP/IP协议栈后才能使用。
|
H A D | kernel-standard-newip.md | 47 | 报文头是否携带Total Length | 2 | 2 Byte | UDP置0,TCP置1 | New IP报文总长度(包含报头长度)。 | 285 New IP可变长地址配置,路由配置,UDP/TCP收发包demo代码链接如下,New IP协议栈用户态接口使用方法可以参考[代码仓examples代码](https://gitee.com/ope… 293 | nip_tcp_server_demo.c | New IP TCP收发包服务端demo代码 | 294 | nip_tcp_client_demo.c | New IP TCP收发包客户端demo代码 | 311 以上步骤操作完成后,可以进行UDP/TCP收发包,收发包demo默认使用上面步骤中配置的地址和路由。 341 **TCP收发包操作步骤:** 427 #### TCP握手 429 TCP三次握手SYN报文格式如下,New IP极简报文头包含2字节的bitmap(0x77,0x00),bitmap1标识后面携带TTL,报文总长度,上层协议类型,目的地址,源地址。bitmap2是… 437 #### TCP数据包 439 TCP数据格式如下,New IP极简报文头包含2字节的bitmap(0x77,0x00),bitmap1标识后面携带TTL,报文总长度,上层协议类型,目的地址,源地址。bitmap2是字节对齐不携带…
|
/ohos5.0/docs/en/device-dev/kernel/ |
H A D | kernel-small-debug-shell-net-netstat.md | 6 …TCP/IP network. It can display the actual network connections and the status of each network inter… 57 …nt of data that is not read by the user.<br>For Listen TCP, the value indicates the number of TCP … 58 | Send-Q | For a TCP connection, this value indicates the amount of data that has bee… 61 | State | TCP connection status. This parameter is meaningless for UDP. …
|
H A D | kernel-small-debug-shell-net-arp.md | 6 …C address in the ARP cache table. The ARP cache table is maintained by the TCP/IP stack. You can r… 32 - The **arp** command is used to query and modify the ARP cache table of the TCP/IP stack. If ARP e… 34 - This command can be used only after the TCP/IP protocol stack is enabled.
|
H A D | kernel-standard-newip.md | 47 …e total length | 2 | 2 | Set to **0** for UDP and **1** for TCP.| Total length of t… 295 | nip_tcp_server_demo.c | Sample code for the server to send and receive New IP packets using TCP.| 296 | nip_tcp_client_demo.c | Sample code for the client to send and receive New IP packets using TCP.| 313 Now, you can send and receive packets over UDP/TCP. By default, the addresses and routes configured… 343 **Sending and Receiving Packets over TCP** 434 #### TCP Handshake 442  444  446 #### TCP Data Packet 454  [all …]
|
/ohos5.0/docs/zh-cn/application-dev/web/ |
H A D | web-debugging-with-devtools.md | 88 2. 将查询到的domain socket转发至电脑的TCP 9222端口。 113 需要从本地的TCP 9222端口发现被调试网页,所以请确保已勾选 "Discover network targets"。然后再进行网络配置。 324 如果tcp:9222被占用,可以将domain socket转发到其他未被占用的TCP端口, 比如9223等。 325 如果转发到了新的TCP端口, 需要同步修改电脑端Chrome浏览器"Target discovery settings"中的端口号。 342 * 请确保电脑端的本地tcp:9222(其他TCP端口同理)没有被占用。 346 * 转发成功后,请用电脑端的Chrome浏览器打开网址 http://localhost:9222/json ,URL里的9222需要改为自己实际配置的TCP端口。 355 - 请确保Chrome调试工具界面的 "Configure" 中配置的端口号,与端口转发指定的TCP端口号一致。 356 - 在本文档中,默认使用的TCP端口号为9222。 357 …如果开发者使用了其他的TCP端口号(比如9223),请同时修改[端口转发](#端口转发)中的TCP端口号和[Chrome调试工具界面"Configure"配置](#在chrome浏览器上打开调试工…
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/include/base/ |
H A D | js_debugger_config.h | 30 TCP, enumerator 47 : protocol(TCP), in DebuggerConfig() 141 DebuggerConfig debuggerConfig_ = {TCP, WEBSOCKET, 0, DEFAULT_PORT, false, false};
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ |
H A D | README_zh.md | 12 - `ylong_io`:依赖 `libc` 库,结合系统的 epoll 机制,实现了非阻塞 TCP 和 UDP 功能,作为 `ylong_runtime` 异步 IO 的底座; 21 - `ylong_io`:提供了事件驱动型网络 IO,通过 epoll 实现了非阻塞性的 TCP 和 UDP。用户无需直接依赖该库。 31 - `Async IO`:异步网络 IO & 文件 IO,提供可在异步上下文中使用的 IO 接口,包括 TCP、UDP、文件的创建、关闭、读、写等; 75 | | | └── tcp # 异步TCP实现
|
/ohos5.0/docs/zh-cn/application-dev/network/ |
H A D | socket-connection.md | 5 Socket 连接主要是通过 Socket 进行数据传输,支持 TCP/UDP/Multicast/TLS 协议。 9 > 应用退后台又切回前台后,需要对网络通信做失败重试,通信失败后匹配错误码并重新创建新的TCP/UDP连接对象。 22 应用通过 Socket 进行数据传输,支持 TCP/UDP/Multicast/TLS 协议。主要场景有: 24 - 应用通过 TCP/UDP Socket进行数据传输 25 - 应用通过 TCP Socket Server 进行数据传输 96 ## 应用 TCP/UDP 协议进行通信 98 UDP 与 TCP 流程大体类似,下面以 TCP 为例: 188 ## 应用通过 TCP Socket Server 进行数据传输 190 服务端 TCP Socket 流程: 651 ## 应用通过将 TCP Socket 升级为 TLS Socket 进行加密数据传输 [all …]
|
H A D | net-netfirewall.md | 24 4. 支持拦截规则下发后立即生效(此点针对TCP协议:需断开已有被拦截的TCP连接) 28 3. 支持拦截规则下发后立即生效(此点针对TCP协议:需断开已有被拦截的TCP连接)
|
/ohos5.0/foundation/communication/dsoftbus/ |
H A D | README_zh.md | 295 1. 业务在软总线客户端调用ShiftLNNGear,通过IPC接口调用到服务端ShiftLNNGear,策略管理模块按照策略对TCP长连接的keepalive属性进行调整。 312 // 按照策略对TCP长连接的keepalive参数进行调整 316 2. 业务指定不同的保活探测间隔,对应不同的TCP保活时长。 319 HIGH_FREQ_CYCLE = 30,代表TCP保活时长在40s以内; 320 MID_FREQ_CYCLE = 60,代表TCP保活时长在70s以内; 321 LOW_FREQ_CYCLE = 5*60,代表TCP保活时长在315s以内; 322 DEFAULT_FREQ_CYCLE = 10*60,代表TCP保活时长在615s以内。
|
H A D | README.md | 289 …olicy management module adjusts the keepalive attributes of the long-lived TCP connection based on… 310 // Adjust the keepalive parameters of the long-lived TCP connection based on the policy. 314 2. Set **ModeCycle** for the service, which determines the TCP keepalive duration for the device. 317 If HIGH_FREQ_CYCLE is used, the TCP keepalive duration is within 40 seconds. 318 If MID_FREQ_CYCLE is used, the actual TCP keepalive duration is within 70 seconds. 319 If LOW_FREQ_CYCLE is used, the TCP keepalive duration is within 315 seconds. 320 If DEFAULT_FREQ_CYCLE is used, the TCP keepalive duration is within 615 seconds.
|
/ohos5.0/docs/en/application-dev/network/ |
H A D | socket-connection.md | 24 - Implementing data transmission over TCP socket or UDP socket connections 25 - Implementing data transmission over TCP socket server connections 96 ## Transmitting Data over TCP Socket or UDP Socket Connections 98 …ementation is similar for UDP socket and TCP socket connections. The following uses data transmiss… 102 2. Create a TCP socket connection. A **TCPSocketConnction** object is returned. 112 7. Enable the TCP socket connection to be automatically closed after use. 122 // Create a TCP socket connection. A TCPSocket object is returned. 188 ## Transmitting Data over TCP Socket Server Connections 190 The TCP socket server connection process is described as follows: 657 2. Create a TCP socket connection. For details, see [Transmitting Data over TCP Socket or UDP Socke… [all …]
|
/ohos5.0/docs/zh-cn/application-dev/basic-services/update/ |
H A D | sample-server-overview.md | 17 - 搜包服务:升级服务(UpdateService)提供的服务能力之一,依赖支持TCP和SSL协议的服务器。 19 - 搜包服务器:即支持搜包服务的通过TCP连接并支持SSL协议的服务器,本概述提及的升级服务示例服务器即是符合要求的搜包服务器之一。
|
/ohos5.0/base/customization/enterprise_device_management/services/edm_plugin/src/network/rule/ |
H A D | rule_utils.cpp | 53 case Protocol::TCP: in EnumToString() 67 return Protocol::TCP; in StringProtocl()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-network-kit/ |
H A D | _net_conn___connection_properties.md | 22 | [tcpBufferSizes](#tcpbuffersizes) [NETCONN_MAX_STR_LEN] | TCP 缓冲区大小。 | 154 TCP 缓冲区大小。
|
H A D | errorcode-net-socket.md | 79 **TCP/UDP 错误码说明:** 80 > TCP/UDP Socket其余错误码映射形式为:2301000 + Linux系统内核错误码errno,关键信息请参考Linux系统内核错误码。
|
/ohos5.0/commonlibrary/rust/ylong_runtime/docs/ |
H A D | user_guide.md | 99 使用 ylong_runtime 中封装的异步IO(TCP/UDP)进行网络连接,相关接口定义位于模块 `ylong_runtime::net`. 108 // 异步TCP服务端,监听一个端口 115 // 接受一个TCP连接请求
|
/ohos5.0/docs/en/application-dev/reference/apis-network-kit/ |
H A D | errorcode-net-vpn.md | 57 A TCP socket connection fails to be established. 61 Check whether a TCP socket connection is set up successfully.
|
H A D | _net_conn___connection_properties.md | 22 | [tcpBufferSizes](#tcpbuffersizes) [NETCONN_MAX_STR_LEN] | TCP buffer size.| 154 TCP buffer size.
|
/ohos5.0/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/ |
H A D | iptables_rule_plugin_test.cpp | 193 filter.protocol = IPTABLES::Protocol::TCP; 205 ASSERT_TRUE(filter2.protocol == IPTABLES::Protocol::TCP); 283 filter.protocol = IPTABLES::Protocol::TCP; 356 IPTABLES::Protocol protocol = IPTABLES::Protocol::TCP; 359 plugin->ProcessFirewallProtocol(static_cast<int32_t>(IPTABLES::Protocol::TCP), protocol); 360 ASSERT_TRUE(protocol == IPTABLES::Protocol::TCP); 403 plugin->ConvertProtocolCommand(IPTABLES::Protocol::TCP, command2);
|
/ohos5.0/docs/zh-cn/application-dev/dfx/ |
H A D | hdc.md | 264 #### TCP连接场景 268 > TCP调试功能尚未稳定,请谨慎用于生产环境。 299 5. 如果需要关闭TCP连接模式,可以在设备中关闭无线调试开关。 436 3. 通过TCP连接指定的设备,命令格式如下: 651 | [Fail]TCP Port listen failed at XXXX | 端口转发任务设置失败,本地转发端口被占用。 | 670 | [Fail]TCP Port listen failed at XXXX | 端口转发任务设置失败,本地转发端口被占用。 | 1158 - 如可通过TCP模式连接,可执行`hdc tmode usb`命令恢复USB连接。
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkweb/ |
H A D | js-apis-netErrorList.md | 56 |ERR_CONNECTION_CLOSED | -100 | 连接已关闭(对应于TCP FIN)。| 57 |ERR_CONNECTION_RESET | -101 | 连接被重置(对应于TCP RST)。| 255 |ERR_DNS_SERVER_REQUIRES_TCP | -801 | DNS服务器需要TCP。|
|
/ohos5.0/docs/en/application-dev/web/ |
H A D | web-debugging-with-devtools.md | 88 2. Exit hdc shell, and run the following command to forward the obtained domain socket to TCP port … 113 …The web page to be debugged needs to be discovered from the local TCP port 9222. Therefore, ensure… 324 …If **tcp:9222** is occupied, forward the domain socket to another TCP port that is not occupied, f… 325 …If the domain socket is forwarded to a new TCP port, you need to change the port number in **Targe… 346 …t:9222/json** using the Chrome on the PC. Change **9222** in the URL to the actual TCP port number. 355 …rt number in **Configure** on the Chrome debugging page is the same as the TCP port number specifi… 356 - In this topic, the default TCP port number is **9222**. 357 …If you use another TCP port number (for example, **9223**), change the TCP port number in [Port Fo…
|