lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] LwIP Support - sethostaddr


From: Marcos Guerra Medina
Subject: Re: [lwip-users] LwIP Support - sethostaddr
Date: Thu, 8 Sep 2011 22:30:35 +0100

I think it is best done by disruptions to close the socket and start with a new connection and the new IP you want.
As to whether it can do When you want, yes, as long as this by INTERRUPTION. Greetings.

2011/9/8 Kyle Sweet <address@hidden>
Hello,

I'm seeking support for using Lwip.  I'm not sure if this is the best way to ask a question - if not, could someone please help me direct my question?

Here goes:

I am using LwIP on a Blackfin DSP from Analog Devices.  I'm using UDP with static IP addressing and no DHCP.  But I want to be able to change the IP address on the fly.  I'm trying to use sethostaddr() to accomplish this.  I have a few specific questions:

1) Can I just call sethostaddr() at any time, wihtout having to completely re-initialize the TCP/IP stack?
2) Would I then be running with the new IP Address?
3) If I have open sockets, would I need to close them first and re-open new sockets with the new IP address?
4) Is there anything else I need to know about changing IP address in an LwIP application?

Hope to hear back from you!

Cheers,
Kyle

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

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