can you abort the connection before ?

Jonathan
----- Original Message ----- From: "Tolly Nelson" <[EMAIL PROTECTED]>
To: <uip-users@sics.se>
Sent: Thursday, September 07, 2006 1:29 PM
Subject: [uip-users] uIP shutdown


I've written an ip changing function for my telnet connection - functionality should be this:

> ip 192.168.0.1
Closing connection, please reconnect to: 192.168.0.1

Connection to host lost

however, I can't think of an elegant way of calling uip_sethostaddr(), because an minimum of 4 extra packets need to be exchanged (FIN, ACK etc). I'm assuming uIP doesn't have a shutdown function that ends any current connections, and then stops replying? If I call uip_sethostaddr() directly, the connection is not closed cleanly because uip_hostaddr is changed prematurely.

Any ideas, anyone?

Tolly


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.1/440 - Release Date: 06/09/2006




Reply via email to