Zahir Lalani schrieb:

      while (1){

            ptel_pcb = tcp_listen(ptel_pcb);

            tcp_accept(ptel_pcb, echo_accept);

      }

Is this correct? I would normally expect to issue the listen on a port only one

No, the correct way is to call tcp_listen() before the while loop: the pcb stays in listening state until closed by tcp_close().

Simon


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to