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.

CC3000hostdiver 里面有判断连接是否断开的函数吗?(TCP/IP模型)

Other Parts Discussed in Thread: MSP430FR5739

TI工程师,

您好,我现在使用CC3000(CC3000+MSP430FR5739) 与电脑端连接传送数据,使用的是TCP/IP模型,

连接以后,在传输数据的过程中,CC3000如何知道连接是否已经断开啊?CC3000hostdiver中有相应

函数可以处理吗,CC3000中使用的是select模型,使用getsockopt时返回的值总是-57,这代表什么意思

啊?getsockopt的返回值是0或1 啊!

getsockopt(clientSocket,SOL_SOCKET,SOCKOPT_RECV_NONBLOCK,&optval,(socklen_t*)&optlen)

谢谢~