Forum Discussion
Altera_Forum
Honored Contributor
21 years agoLWIP socket creation issue
LWIP socket creation issue I currently have implemented an algorithm that allows two separate devices (using the same code) to create and maintain a socket that goes something like: TaskA...
Altera_Forum
Honored Contributor
21 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- Also you have to create threads using sys_thread_new if you wish to use sockets in those threads.[/b] --- Quote End --- I'm not sure I understand why you say this - what is the specific issue? IIRC, sys_thread_new is inappropriate for any task which terminates rather than loops forever - and the easiest way of implementing TCP/IP servers is to have the listen thread spawn new processing threads as required, which then die when the socket connection is closed. - Roddy