lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] tcp_output functionality


From: David Belohrad
Subject: Re: [lwip-users] tcp_output functionality
Date: Sat, 30 Mar 2013 10:19:59 +0100

I see. Isn't your pcb by chance the pcb of listener and not of the active 
connection? The pcb used has to be the one which you obtain when you get a call 
to TCP_accept poll function. Not the one you create for listening at given port.

The 'if' condition is IMHO true when you pass there listener PCB 

D.

cat <address@hidden>napsal/a:

>Hi,
>
>yes indeed I do. Sorry it didn't display well, but what I do is (exactly
>like this):
>
>tcp_write(pcb, text, text_length, TCP_WRITE_FLAG_COPY);
>tcp_output(pcb);
>
>And as I wrote it is not only that I don't get anything, but I know where it
>cuts short. Its early in tcp_output function:
>
>  if (tcp_input_pcb == pcb) {
>    return ERR_OK;
>  }
>
>this condition is true and I don't understand why, since I can not dig out
>the meaning tcp_input_pcb.
>
>Thanks for help.
>
>
>
>
>
>--
>View this message in context: 
>http://lwip.100.n7.nabble.com/tcp-output-functionality-tp21267p21269.html
>Sent from the lwip-users mailing list archive at Nabble.com.
>
>_______________________________________________
>lwip-users mailing list
>address@hidden
>https://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

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