我现在能用目前的代码实现udp发送和接收,但都不是基于连接的,怎样让设备成为一个tcp服务端。
其实我用套接字实现了的,pc软件能连接,但就是不能收发数据,如果已连接上就调用recv函数还会死在一个地方。
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.
我现在能用目前的代码实现udp发送和接收,但都不是基于连接的,怎样让设备成为一个tcp服务端。
其实我用套接字实现了的,pc软件能连接,但就是不能收发数据,如果已连接上就调用recv函数还会死在一个地方。