7.15.13 Configure and record the IP address information of the communication partner
Function
- ADDR_PARAM (structure): used to configure and record the IP address information of the communication partner
Parameter description
| Interface variables | Data type | Description |
|---|---|---|
| IP_ADDR | ARRAY[0..3] OF BYTE | Configure and record the IP address information of the communication partner |
| IP_PORT | UINT | Configure and record port information of communication partners |
- The ADDR_PARAM structure is used to configure and record the IP address information of the communication partner;
- When using USEND_C for UDP sending, it is necessary to set the IP address and port information of the communication partner in this structure instance to inform the UDP sending end of the data sending destination.
- When using URECV_C for UDP reception, user need to bind a structure instance to record the source IP and source Port information of the data received by the current UDP.