(Assuming I'm following the code correctly...)
You will get the connected callback only if successful.  If the connection
fails, you will get the error callback instead with one of two error codes:
If the connection is rejected with a RST (I think that would mean that the
system is there but no server is listening on that port), the error code
would be ERR_RST.
If a timeout occurs after the maximum number of SYN retries [TCP_SYNMAXRTX]
is reached (i.e. no response from server), the error code would be ERR_ABRT.

Jeff

On Wed, Nov 11, 2009 at 4:59 PM, JM <[email protected]> wrote:

> Easy question I hope:
>
> (1.3.0, in Raw mode)
>
> When I call tcp_connect() it immediately returns error-free as expected.
> The question is, what happens when the connection fails, as in, the host
> never responds?  I thought maybe it calls the "connected" callback specified
> in tcp_connect() with an error after TCP_SYNMAXRTX retries, but this doesn't
> appear to happen.
>
>
>
> _______________________________________________
> lwip-users mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to