AnsweredAssumed Answered

Simple TCP sockets client example?

Question asked by JOHN ADAMSON on May 20, 2011
Latest reply on Jun 7, 2011 by Hubert Bauer

Is there a complete example of a simple TCP sockets client around somewhere?  Found a server (quote-a-day?), but no client. 

 

I have an app that works fine under Linux on an Intel box, but after some modifications for MQX and a lot of head banging, I still don't have something that connects and talks to the server.  I was getting it to connect to the server, but adding in the recv call was crashing the code completely (as in, before it even got to the recv call).  Then I figured out that the task needed more stack space,  increased it to 4000 or 6000 and it no longer crashes, but it also no longer connects.  

 

FWIW, I'm running on a very old M52233DEMO board, so I'm thinking I may also need to patch the phy_mfc5223x.c code for the speed problem?

 

John

Outcomes