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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

382 Views
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.

Labels (1)
Tags (1)
0 Kudos
0 Replies