Forum Discussion
Altera_Forum
Honored Contributor
16 years agoProblem with "Multiple server sockets"
I am having a problem with 2 TCP server sockets on my STRATIX II kit. I have defined 2 server sockets listening on 2 different ports called: "control server" task priority 6 "telnet server...
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