Simple TCP sockets client example?

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

Simple TCP sockets client example?

957 次查看
jpa
Contributor IV

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

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

375 次查看
Steamy
Contributor II

From Technical  Support I got a server-client example but it is for the MCF52259.

You can easily port it to your system.