In fact I didn't put the connection part in the previous mail but the connection is ok :) (the tcp_new/tcp_bind:tcp_listen/tcp_accept sequence). Once the connection is established the tcp_write data frome the callbacks are sent well . But the tcp_write from the main loop that you can see in the source always return the ERR_CON . I read 2 or 3 times the rawapi.txt . But I probably missed something :(
Kieran Mansley wrote: > > On Thu, 2007-04-05 at 09:57 +0000, Yann Suisini wrote: >> At the first tcp_write , it's right that I'm not connected soe ERR_CON >> is ok . But even when I'm connected after, the ERR_CON is always >> returned . I really don't know what I'm doing wrong. > > When do you establish the connection? I can only see calls to tcp_write > (), not to tcp_new()/tcp_bind()/tcp_listen()/tcp_accept()/tcp_connect() > - at least some of these are required. I suggest having a read of > lwip/doc/rawapi.txt > > Kieran > > > > _______________________________________________ > lwip-users mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/lwip-users > > -- View this message in context: http://www.nabble.com/tcp_write%28%29-problem-from-outside-callbacks-functions-tf3530647.html#a9855171 Sent from the lwip-users mailing list archive at Nabble.com. _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
