Networking Forums

Networking Forums > Computer Networking > Linux Networking > Linux server programming

Reply
Thread Tools Display Modes

Linux server programming

 
 
Tes
Guest
Posts: n/a

 
      04-22-2004, 10:49 AM
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!!
 
Reply With Quote
 
 
 
 
Mattias Honrendgard
Guest
Posts: n/a

 
      04-22-2004, 02:08 PM
(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>.
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      04-22-2004, 06:08 PM
On 22 Apr 2004 03:49:25 -0700, Tes <(E-Mail Removed)> wrote:
> 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.


Per another reply your question is confusing (maybe your up and down are
in wrong order). Certainly you cannot expect your server to respond after
you have done "ifdown" on its interface. But even if you "ifup" it after
that, it is possible that the ifdown disabled your service if it was only
bound to that specific interface or IP instead of "any".

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
 
Tes
Guest
Posts: n/a

 
      04-26-2004, 08:15 AM
(E-Mail Removed) (David Efflandt) wrote in message news:<(E-Mail Removed)>...
> On 22 Apr 2004 03:49:25 -0700, Tes <(E-Mail Removed)> wrote:
> > 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.

>
> Per another reply your question is confusing (maybe your up and down are
> in wrong order). Certainly you cannot expect your server to respond after
> you have done "ifdown" on its interface. But even if you "ifup" it after
> that, it is possible that the ifdown disabled your service if it was only
> bound to that specific interface or IP instead of "any".


Thank you for your reply. You were right, my up and down are in wrong
order. I issue ifdown first then ifup, the server can not receive any
messages from client. I didnt bind specific interface or IP. By the
way, I also join multicast group to receive multicast packet.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
some problem in UDP programming under linux s9327620@csie.cyut.edu.tw Linux Networking 4 02-27-2007 03:16 AM
PROGRAMMING MY WIRELESS INTERFACE in linux sam1967 Wireless Internet 2 06-08-2005 06:49 AM
Linux kernel socket programming Shuang Liang Linux Networking 2 04-07-2005 12:38 AM
linux network programming zm Linux Networking 1 02-09-2004 11:04 PM
linux socket programming sank Linux Networking 2 01-02-2004 05:36 PM



1 2 3 4 5 6 7 8 9 10 11