每次在客户端接收的包,都要先创建、捆绑、接收、关吗?
我现在想只创建一次,一直接收不关!
发包的时候是可以用一个Socket的!
我看到有ReuseaddrEnabled相关的结构体,没有说明怎么使用啊!
本人网络小白,工作用到,很急。
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.
我把答案复制过来吧:
SO_REUSEADDR is not supported in the current CC3100/CC3200 devices. A list of supported parameters for sl_SetSockOpt() can be found here:
http://software-dl.ti.com/ecs/cc31xx/APIs/public/cc31xx_simplelink/latest/html/group__socket.html#ga6363ea2098e629c1a6e2bf80e731fb79