linux - Changing IP address at runtime -
i creating tcp connection using function socket()
, bind()
, , listen()
.
our customers able define ip address of server @ runtime. there way of changing ip @ runtime or must done in bios?
thanks tips
i've changed ip address using ifaddrset(..)
many times. call function within startup script before application running have no idea how calling function affects connected sockets.
but have @ functions provided iflib.h
. i'm sure you'll find suits needs (ifaddradd(..)
looks promising).
Comments
Post a Comment