Re: How to know if a network adapter is connected
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Mon, 13 Oct 2008 11:53:35 -0700
If someone is sending data to your via datagram, you can tell who sent it
when the packet is received (don't need to bind). If someone is connecting
to you via stream socket, you can tell who connected when that happens
(don't need to bind).
Paul T.
"Helge Kruse" <Helge.Kruse-nospam@xxxxxxx> wrote in message
news:gd04go$5g5$00$1@xxxxxxxxxxxxxxxxxxxx
"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:e2NbhcVLJHA.1304@xxxxxxxxxxxxxxxxxxxxxxx
Why? Why do you care which adapter is used?
Paul, as I understand fred_d he wrote a custom DHCP implementation. It
should respond with different content dependent on the network (adapter)
where the DHCP request has been received.
You can certainly get some information about whether a network adapter isI see the need to bind sockets to adapters to identify where packets have
running or not but it's not clear to me why you'd ever need to do that
been received. The bind operation fails as long as the adapter's link
state is down (not connected to network).
Regards,
Helge
.
- Follow-Ups:
- Re: How to know if a network adapter is connected
- From: Helge Kruse
- Re: How to know if a network adapter is connected
- References:
- How to know if a network adapter is connected
- From: fred_d
- Re: How to know if a network adapter is connected
- From: Helge Kruse
- Re: How to know if a network adapter is connected
- From: fred_d
- Re: How to know if a network adapter is connected
- From: Paul G. Tobey [eMVP]
- Re: How to know if a network adapter is connected
- From: Helge Kruse
- How to know if a network adapter is connected
- Prev by Date: Re: How to know if a network adapter is connected
- Next by Date: Re: Not a Valid WIN32.exe
- Previous by thread: Re: How to know if a network adapter is connected
- Next by thread: Re: How to know if a network adapter is connected
- Index(es):
Relevant Pages
|