W5500 TCP功能-客户端功能

TCP CLIENT TCP客户端

It is same as TCP server except ‘CONNECT’ state. User can refer to the above “TCP SERVER” section.
除了连接状态不同外,与TCP服务器一样,用户能够参考上面的"TCP SERVER“部分

建立连接的过程

连接

将连接请求(SYN包)传输到“TCP服务器”。当与“TCP服务器”建立“连接套接字”时,可能会发生诸如arpto、tcpto等超时。
{
Sn_DIPR0 = server_ip; /* set TCP SERVER IP address*/
Sn_DPORT0 = server_port; /* set TCP SERVER listen port number*/
Sn_CR = CONNECT; /* set CONNECT command */
}

发布了8 篇原创文章 · 获赞 1 · 访问量 3634

猜你喜欢

转载自blog.csdn.net/qq_15548761/article/details/89387849