TCP server cant be connected to in a C++ project

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

TCP server cant be connected to in a C++ project

757 次查看
nasihs
Contributor I

Hello

I'm using MCUXpresso IDE v11.5 and RT1062

I wrote a TCP server application using socket API, based on a tcpecho example and everything was fine.

But after migrating the tcp server source code to a new C++ project, I cant connect to the server with a tcp client. 

However, the tcpecho example which uses netconn API in the project still works, which suggests the tcp stack and PHY are ok.

What's the difference between netconn api and socket api under a C++ project?

How can I solve this problem?  Any attention is appreciated.

标签 (1)
标记 (1)
0 项奖励
回复
0 回复数