(E-Mail Removed) (Tes) wrote in message news:<(E-Mail Removed). com>...
> Dear all,
>
> I wrote a server to service requests from client, everything works
> fine. However, if I type the command "ifup lan" and "ifdown lan", the
> server can not receive any messages from client. More specific, the RX
> counter of "lan" interface did increased, but my server receive
> nothing.
> One of my friend said this is may cased by "ifdown lan", after
> "ifdown", the socket descriptors will be cleared. I am not sure..so
> Please give me some advices if you might know the answer.
>
>
> Really appreciate!!
Sorry, I don't understand what it is you're trying to ask? However,
ifconfig down <interface> "temporarily" takes an interface down (it
can be brought backup up again without having to reconfigure the
interface using ifconfig up <interface>). i.e. The interface still
holds it IP details, etc.
If you want to totally remove the interface, you can use ifconfig
delete <interface>.