Re: Networks and wireless etc
- From: "Eugene Gershnik" <gershnik@xxxxxxxxxxx>
- Date: Thu, 23 Jun 2005 12:57:52 -0700
Simon Jefferies wrote:
> Hello,
>
> Please can you tell me if I'm doing this right or not?
>
> I'm trying to get winsock to use the relevant network adapter to
> connect to an IP address. I have enumerated the list of devices and
> have e.g. network card, wireless network and loopback (using the
> GetAdaptersAddresses() WIN32 function). Do I simply use the SOCKADDR
> structure?
bind() to a sepcific local address before connecting.
> Or am I doing this completely wrong? What i'm trying to do is get the
> user to select that they may want to connect using the wireless or
> bluetooth device? Can this be done or is it up to Windows to decide
> etc?
It can be done but it is usually a bad idea *especially* when volatile
things like Wi-Fi and BT are involved. The network config may change when I
move a few feet but the preferences I selected for your app won't
--
Eugene
http://www.gershnik.com
.
- Follow-Ups:
- Re: Networks and wireless etc
- From: Alun Jones [MSFT]
- Re: Networks and wireless etc
- From: Arkady Frenkel
- Re: Networks and wireless etc
- References:
- Networks and wireless etc
- From: Simon Jefferies
- Networks and wireless etc
- Prev by Date: Re: Getting subnet mask
- Next by Date: Re: Slow authentication?
- Previous by thread: Networks and wireless etc
- Next by thread: Re: Networks and wireless etc
- Index(es):
Relevant Pages
|