Forum Discussion
Altera_Forum
Honored Contributor
11 years agoI think I've "dirtly" solved my problem. Before calling netmain_init(), one must close all sockets (including the primary socket, closed with socketclose(fd_listen) ), and then force the variable ifNumber to 0. Call netmain_init() and then recreate the primary socket, socket(...), bind(...) and listen(...) as in the beginning of the SSSSimpleServerTask() example.
If you have any other better solution, don't hesitate ...