lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Basic LISTEN question


From: address@hidden
Subject: Re: [lwip-users] Basic LISTEN question
Date: Fri, 13 Nov 2009 12:52:35 +0100
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]