Re: Connection Manager Questions

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



- 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
>


.



Relevant Pages

  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation [try #3]
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... kernel socket family. ... presentation side is left to the client. ... Each connection goes to a particular "service". ...
    (Linux-Kernel)
  • Re: RRAS troubles...
    ... > the application and using the MprAdminInterfaceSetInfo API call to update ... > phone number of the store to call in the interface and the MprInfoBlockSet ... > connection to a store after it fails to connect to a store. ...
    (microsoft.public.win32.programmer.networks)
  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... Make it possible for the client socket to be used to go to more than one ... Each connection goes to a particular "service". ...
    (Linux-Kernel)
  • [PATCH 0/5] [RFC] AF_RXRPC socket family implementation [try #2]
    ... These patches together supply secure client-side RxRPC connectivity as a Linux ... Make it possible for the client socket to be used to go to more than one ... Each connection goes to a particular "service". ...
    (Linux-Kernel)
  • Re: Socket Exception
    ... In this case the server most likely rejected your ... connection. ... Each command is a new socket connection that is opened and closed ... /// Required designer variable. ...
    (microsoft.public.win32.programmer.networks)