Lines Matching refs:a
3 … products need to connect to the Internet, and device networking has become a trend. To achieve th…
5 …n a hundred thousand miles, and remotely control the device to complete specific tasks. You can al…
11 …smission Control Protocol/Internet Protocol. It is not a single protocol, but a general term for a…
15 … is a network interconnection model studied by the ISO (International Organization for Standardiza…
19 The TCP/IP communication protocol uses a four-layer hierarchical structure, and each layer calls th…
32 …a separate protocol stack. The OSI reference model has 7 layers, while the TCP/IP reference model …
36 …also translated as the Internet Protocol Address) and is a uniform address format that assigns a l…
48 In order to support various network protocol stacks, RT-Thread has developed a **SAL** component, t…
57 RT-Thread's network framework adopts a layered design with four layers, each layer has different re…
61 The network framework provides a standard BSD Socket interface to user applications. Developers use…
66 * **AT Socket** is a component for modules that support AT instructions. The AT command uses a stan…
67 * **Socket CAN** is a way of programming CAN, it is easy to use and easy to program. By accessing t…
71 The bottom layer is a variety of network chips or modules (for example: Ethernet chips with built-i…
75 …a large number of network software packages, which are various network applications based on the S…
79 | Paho MQTT | Based on Eclipse open source Paho MQTT, it has done a lot of functions and per…
152 …e `send()` to hand the data to the `tcpip` thread. The `tcpip` thread sends a message to wake up t…
158 …terface programming to implement network communication functions. Socket is a set of application p…
162 …a connection-oriented protocol to ensure reliable data transmission. Through the TCP protocol tran…
164 …o answer. Only when the other party answers your call can he/she establish a connection with you.…
170 UDP is short for User Datagram Protocol. It is a connectionless protocol. Each datagram is a separa…
174 …en received by others. By the way, unless someone else responds to you with a walkie-talkie. So th…
176 ## Create a Socket
178 …ommunicating parties first use the `socket()` interface to create a socket, assigning a socket des…
188 | protocol | Protocol allows to specify a protocol for the socket, which is set to 0 by default. |
199 The sample code for creating a TCP type socket is as follows:
202 /* Create a socket, type is SOCKET_STREAM,TCP type */
214 …a port number and an IP address to a specified socket. When using socket() to create a socket, onl…
229 ## Establishing a TCP Connection
244 | backlog | Indicates the maximum number of connections that can be waited at a time |
251 … connection must be initialized with the `accept()` function, which creates a new socket for each …
268 Used by the client to establish a connection with the specified server. The interface is as follows:
305 TCP and UDP have different data transmission methods. TCP needs to establish a connection before da…
346 In the case where a connection is not established, you can use the `sendto()` function to send UDP …
404 …nnection is full-duplex. You can use the `shutdown()` function to implement a half-close. It can c…
506 …le, first run the TCP client example. This example will open a TCP server on the PC, open a TCP cl…
508 …n the example project, there is already a TCP client program `tcpclient_sample.c`. The function is…
514 * This is a tcp client routine
551 …/* Get the host address through the function entry parameter url (if it is a domain name, it will …
562 /* Create a socket of type SOCKET_STREAM, TCP type */
593 /* Receive maximum BUFSZ-1 byte data from a sock connection */
607 /* Print the recv function returns a warning message with a value of 0 */
620 rt_kprintf("\n got a'q'or'Q',close the socket.\r\n");
645 /* Print the send function returns a warning message with a value of 0 */
651 MSH_CMD_EXPORT(tcpclient, a tcp client sample);
654 When running the example, first open a network debugging assistant on your computer and open a TCP …
666 … the network debugging tool window, send Hello RT-Thread!, which means that a data is sent from th…
680 got a 'q' or 'Q',close the socket.
688 This is an example of a UDP client. This example will open a UDP server on the PC and open a UDP cl…
694 * This is a udp client routine
732 …/* Get the host address through the function entry parameter url (if it is a domain name, it will …
735 /* Create a socket of type SOCK_DGRAM, UDP type */
755 /* Thread sleep for a while */
767 When running the example, first open a network debugging assistant on your computer and open a UDP …