Additionally, what is the best way to determine if a TCP connection failed (ie, the server is down)?
It seems like the jump occurs between
// Fill in IP and connect
IP4_ADDR(&DestIPaddr, SERVER_ADDR0, SERVER_ADDR1, SERVER_ADDR2, SERVER_ADDR3);
tcp_connect(appPcb, &DestIPaddr, SERVER_PORT, NetworkApp_connected);
and the NetworkApp_connected callback being called.
But what if the connected callback never is run? If I already have the ability to poll, what should I watch for to indicate the connection never went though?
Thanks