|
From: | Inderjit Singh |
Subject: | Re: [lwip-users] tcp_connection (no SYN packet on server side) |
Date: | Mon, 4 Jun 2018 13:50:30 +0000 |
Hi Sergio, thanks for the reply!
Bind I can remove, fair enough.
IP addressing is client (this development side):
ip: 192.168.100.120
netmask: 255.255.255.0
gw: 192.168.100.1
The server (raspberry pi without any implementation, just monitoring packets)
ip: 192.168.100.155
netmask: 255.255.255.0
gw: 192.168.100.1
Setting goes trough without any error (I have put assert after every setting)
The main loop is this:
udp_cb_called = tcp_cb_called = false;} Once the callback is called, I set the flags to true to redo the connect. Note, this is just for testing not for any other purpose. Once I can see SYN packet then I know I can start implementing properly...
Inderjit Singh Senior Embedded Engineer, MSc Evidente ES East AB Warfvinges väg 34 SE-112 51 Stockholm Sweden Mobile: +46 (0)70 912 42 69 E-mail: address@hidden www.evidente.se ________________________________________ From: lwip-users [lwip-users-bounces+address@hidden on behalf of Sergio R. Caprile address@hidden Sent: 04 June 2018 14:59 To: address@hidden Subject: Re: [lwip-users] tcp_connection (no SYN packet on server side) No need to bind(), you are a client, you connect(). What is the value returned by tcp_connect() ? It should be ERR_OK What do you do after that ? Do you properly call sys_check_timeouts() on the main loop or you just sit waiting things to magically happen ? TCP is a state machine, you just instructed it to start a several steps process. PS: I assume your IP addressing is fine... _______________________________________________ lwip-users mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/lwip-users |
[Prev in Thread] | Current Thread | [Next in Thread] |