开发者

Ad-Hoc wireless network in C#

开发者 https://www.devze.com 2023-01-02 13:29 出处:网络
I would like to auto-create an ad-hoc wireless network from my laptop. I use windows XP SP3 and I want to do it using C#.

I would like to auto-create an ad-hoc wireless network from my laptop. I use windows XP SP3 and I want to do it using C#.

I h开发者_运维知识库ave seen some libraries for mobile, but I havent found something regrading PC. Is there an API to do that ?

Thank you.


Ad-hoc network are usually used in Ubiquitous Computing (smart homes). For a laptop, it depends what you'd like to connect to, as ad-hoc usually work with many devices you control.

May be you mean connecting to whatever network you can, in which case it's more on the OS-level.


If you are willing to setup one machine on the network as a wireless server and forgo Ad Hoc, then the Managed Wifi API on codeplex looks very promising. It is in C# and works on XP SP3 and higher (and a little bit on SP2, fyi). http://managedwifi.codeplex.com/

It uses the Native Wifi API from Microsoft. The Native Wifi API requires you to have a server machine which will hand out private IPs to other devices that connect to the network you create. In Native Wifi you would want StandAlone mode ICS in order to create your network (if you want internet access on your network use full ICS then). http://msdn.microsoft.com/en-us/library/windows/desktop/dd815252(v=vs.85).aspx

Use the Native Wifi as just a reference though, Managed Wifi API is what you will want for C#.


I'm interested in this too actually. I think this could be useful: http://msdn.microsoft.com/en-us/library/ms705973(v=vs.85).aspx

Unfortunately, this is only available for Windows 7 and Windows Server 2008 I believe.
I don't know any c#, but if I did, it'd probably make sense. If you find any insight, please contact me, I'd also like to learn how to do this as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消