lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] tcp_write fails: package generation doesn't work proper


From: Sergio R. Caprile
Subject: Re: [lwip-users] tcp_write fails: package generation doesn't work properly
Date: Wed, 11 Jun 2014 12:54:24 -0300
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Well, I don't see how you call those functions on your client, but you
know you have to wait to be connected before you send data, do you ? The
callback in tcp_connect() will be called when that happens.
Also, you are supposed to check for the available room  before calling
tcp_write(), and/or check its returned value to confirm data has been sent.
Have you run any other (supposed to work) example on your client before
trying this your own code ?
Assuming the port is working and you are calling lwip functions from
only one thread, have a look at the examples in the contrib area, smtp.c
is a master piece of an example for a client. Also, the wiki is not bad
at all.




reply via email to

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