在network_terminal例程中,如果使用nwTcpConnect方式创建一个TCP连接,传入的是IP4或者IPV6的地址,那么如果只有一个URL地址,而该地址对应的IP地址是变化的,该怎么创建一个TCP连接呢
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
在network_terminal例程中,如果使用nwTcpConnect方式创建一个TCP连接,传入的是IP4或者IPV6的地址,那么如果只有一个URL地址,而该地址对应的IP地址是变化的,该怎么创建一个TCP连接呢
参考:
#define HOST_NAME "www.ti.com"
// Get external host IP address
lRetVal = sl_NetAppDnsGetHostByName((signed char*)HOST_NAME, sizeof(HOST_NAME),
&ulIpAddr, SL_AF_INET);