Lines Matching full:tcp
1 # OpenThread CLI - TCP Example
3 The OpenThread TCP APIs may be invoked via the OpenThread CLI.
13 On node 1, initialize the TCP CLI module and listen for incoming connections using the example TCP …
16 > tcp init
17 > tcp listen :: 30000
24 On node 2, initialize the TCP CLI module, connect to node 1, and send a simple message.
27 > tcp init
28 > tcp connect fe80:0:0:0:a8df:580a:860:ffa4 30000
29 > tcp send hello
34 After running the `tcp connect` command on node 2, you should see a printout on node 2 similar to b…
37 TCP: Connection established
44 TCP: Connection established
47 After running the `tcp send` command on node 2, you should see a printout on node 1 similar to belo…
50 TCP: Received 5 bytes: hello
73 Unceremoniously ends the TCP connection, if one exists, associated with the example TCP endpoint, t…
76 > tcp abort
77 TCP: Connection reset
83 …he specified number of bytes using the TCP connection currently associated with the example TCP en…
88 > tcp benchmark run
90 TCP Benchmark Complete: Transferred 73728 bytes in 7233 milliseconds
91 TCP Goodput: 81.546 kb/s
96 … of TCP benchmark. If the benchmark is ongoing, it will show that benchmark is ongoing. This comma…
99 > tcp benchmark result
100 TCP Benchmark Status: Ongoing
103 > tcp benchmark result
104 TCP Benchmark Status: Completed
105 TCP Benchmark Complete: Transferred 73728 bytes in 7056 milliseconds
106 TCP Goodput: 83.592 kb/s
111 Associates a name (i.e. IPv6 address and port) to the example TCP endpoint.
114 - port: the TCP port.
117 > tcp bind :: 30000
125 …nnection establishment is successful, the resulting TCP connection is associated with the example …
128 - port: the peer's TCP port.
129 - fastopen: if "fast", TCP Fast Open is enabled for this connection; if "slow", it is not. Defaults…
132 > tcp connect fe80:0:0:0:a8df:580a:860:ffa4 30000
134 TCP: Connection established
142 > tcp connect 172.17.0.1 1234
149 Deinitializes the example TCP listener and the example TCP endpoint.
152 > tcp deinit
158 List the TCP CLI commands.
161 > tcp help
178 Initializes the example TCP listener and the example TCP endpoint.
181 - size: the size of the receive buffer to associate with the example TCP endpoint. If left unspecif…
183 …TCP). When communicating over TCP between two nodes, either both should use TLS or neither should …
185 …ular" buffering are identical, but the option is provided so that users of TCP can inspect the cod…
188 > tcp init tls
194 Uses the example TCP listener to listen for incoming connections on the specified name (i.e. IPv6 a…
196 …TCP connection is associated with the example TCP endpoint, then any incoming connections matching…
199 - port: the TCP port.
202 > tcp listen :: 30000
208 Send data over the TCP connection associated with the example TCP endpoint.
213 > tcp send hello
219 …) over the TCP connection associated with the example TCP endpoint. This promises the peer that no…
222 > tcp sendend
228 Stops listening for incoming TCP connections using the example TCP listener.
231 > tcp stoplistening