Re: Connection Manager Questions
- From: "Yaroslav Goncharov [MSFT]" <yaroslav.goncharov@nospam>
- Date: Thu, 5 Jan 2006 17:36:26 -0800
- You can have only one active connection request per process. Therefore,
all sockets will be automatically bound to this interface. So just use API
you want to use (e. g. WinSock or WinInet) and don't worry about the
underlying interface.
- There is no a supported way to get an IP address of the current interface
before you tried to connect a socket.
- In most cases, you don't need to specify detailed connection requirements,
so the Connection Planner can use default requirements to establish a
connection.
--
Yaroslav Goncharov
Technical Lead
Microsoft Corp.
This posting is provided "AS IS" with no warranties, and confers no rights.
<yevvi@xxxxxxxxx> wrote in message
news:1135734377.191273.106900@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> I m trying to build an interface which allows to make different network
> connections from pocket pc and laptop, based on the speed, priority and
> cost. It looks like Connection Manager is the api i need to use. I
> have couple of questions:
>
> 1) After i obtain connecton with ConnMgrEstablishConnection(), how do i
> create socket bound to that specific network adapter from which
> connection is made? That is, if i have more than one active connection
> (say both GPRS and ActiveSync) how do i make sure my socket uses the
> right connection (the one from ConnMgrEstablishConnection)? Do i call
> bind() on a socket? How do i get an IP address of the adapter from the
> handle returned by ConnMgrEstablishConnection?
>
> 2) In the CONNMGR_CONNECTIONINFO structure what is the precise meaning
> of ulMaxCost, ulMinRcvBw and ulMaxConnLatency. I found it is not very
> well documented. What should i pass there, what are the units of
> measurement, etc. ?
>
> 3) What is the best alternative to Connection Manager to use on
> laptops? As far as i know, Connection Manager is only supported for
> Windows CE. What api should i use for Windows XP?
>
> Help would be very appreciated,
>
> Thanks
> Yev
>
.
- Prev by Date: Re: Proxy settings design?
- Next by Date: Re: Assertion failed in WMP Application WinCE
- Previous by thread: Re: Proxy settings design?
- Next by thread: windows mobile 5.0 - 3d app performance
- Index(es):
Relevant Pages
|