Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 124377

Forum Post: tcp socket program on EVM6678

$
0
0

Hello,I want to develop a tcp socket client program on EVM6678, I defined the SOCKET for tcp as global variable so that I can use it in two tasks,the task described bellow:

one task for connectting the server, if it connected failed, it will sleep for one second ,then try agin, until it connected sucessful, after it failed , it will pended  with SemPend function;

the other task is for receiving data from server, if it receive enough data , it will trigger the process task.

 after I finished programing , I found I can just receive one time in the receive task, then it will failed, but if I combine the task into one task , it will work well,  how does this happen , if it does matter with fdOpenSession,can you give me some example like I use  socke?


Viewing all articles
Browse latest Browse all 124377

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>