Forum Discussion
Altera_Forum
Honored Contributor
16 years agoI agree that usleep shouldn't be used. You can either use the suggested macros, or the OS call OSTimeDelay.
I had a similar kind of problem when using two tasks that opened two different sockets. I could open socket A and socket B, but afterwards if I closed socket A, I couldn't communicate on socket B until I reopened socket A. I solved the problem by uncommenting the#define TCPWAKE_RTOS 1line in ipport.h