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?