Re: Making a Bluetooth BNEP connection from Windows XP SP2
From: NPR (NPR_at_discussions.microsoft.com)
Date: 11/22/04
- Next message: Flyingskippy: "Networking and File Transfer"
- Previous message: Sujit: "How to launch LAN Properties Programmatically?"
- In reply to: Andreas Heyer: "Re: Making a Bluetooth BNEP connection from Windows XP SP2"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 22 Nov 2004 15:53:07 -0800
Hello Andreas,
Just want to conclude on this!
I got the Bluetooth PAN connect work-around, working in my prototype, thanks
to you sample code.
Regarding the "sin6_scope_id", I found that in the IP_ADAPTER_ADDRESSES
struct using the GetAdaptersAddresses() function. The struct member is called
"Ipv6IfIndex" (no documentation of that either!).
Thanks for all the help!
Niels
"Andreas Heyer" wrote:
> Hello Niels!
>
> NPR wrote:
> > Thanks for the sample code!, this was exactly what I was looking for.
> > How in the he.. did you manage to find all this undocumented stuff. ?, I am
> > impressed!
>
> I have to thank ;-) It took some hours to do that, because I never done it before! But if you read
> MS programming docs you will sooner or later discover how MS builts its APIs. Mostly it's all the
> same like enum something and look for your needed infos.
>
> Unforntunately the user still have to make the connection itself. I didn't figure out how to connect
> this PAN programmatically, e.g. you give the BT address to a connect function and no UI is needed.
> If you look into the PAN COM component with oleviewer you will see some more interfaces implemented.
> But I haven't found the needed header/idl or typelib yet, so I can't tell how to use them at the moment.
>
>
> > You seem to be into the core of networking, so I think I will try another
> > question on you, :-)
>
> Sorry, I'm not :-( But I will give my best!
>
>
> > I want to use IPv6 on the newly created Bluetooth connection, so I use the
> > sockaddr_in6 struct in my TCP connect(), this struct has a member variable
> > called "sin6_scope_id" (used to hold the interface # show if you use
> > "ipconfig"). My problem is that I don't know how to resolve this IF #
> > programmatically. The # can change from one boot to another. So far I have
> > looked it up using ipconfig and then hard coded it into my application. I
> > haven't found any documentation from MS about resolving the scope_id.
>
> I never used IPv6 before. But as I said: Let us try...
>
> First of all you have to check if the IPv6 driver is bound to the PAN connection. You should look
> inside the network connection folder for that. As I know you can't bind IPv6 to a dial up connection
> for example. This is done via the built in IPv6-IPv4-bridge or redirector if I understand right. I
> don't know if the PAN connection is different to normal ethernet LAN connections, so you have to
> watch if you can bind IPv6. I can't figure it out at the moment, because I forgot my BT dongle at
> home. So there's no PAN connection on my PC.
>
> And then look inside PSDK doc under networking section for IPHelper API. When making the connection
> program yesterday I saw that API. If I remember right than you can enumerate IP interfaces with it
> and query the needed informations for a special one. It also supports IPv6. The doc is next to the
> Connection API doc I used and which doc path I noted inside my source code.
>
>
> Mit freundlichen Grüßen
> Andreas ;-)
>
>
- Next message: Flyingskippy: "Networking and File Transfer"
- Previous message: Sujit: "How to launch LAN Properties Programmatically?"
- In reply to: Andreas Heyer: "Re: Making a Bluetooth BNEP connection from Windows XP SP2"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|