how to create ad hoc network using wi-fi

how can we create ad hoc network using wi-fi? by how i mean how we can implement a connection between two pocket pc using wi-fi give me a sample of code in any programming language that can built a connection between the pocket pc using wi-fi?
[267 byte] By [rose1234] at [2008-2-2]
# 1
The following thread on devx.com discusses this:
http://forums.devx.com/showthread.php?t=143917

Also, this article talks about ad hoc setup on WinXP:
http://support.microsoft.com/default.aspx?scid=kb;en-us;873170

Would bluetooth suit your needs?
This page details bluetooth support on Windows CE:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecomm5/html/wce50conbluetoothsamples.asp

MikeFlasko at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 2
thanks mike

the first site discussing the same issue but they did not complete their discussion,
the second site give me the steps to setup the ad hoc on WinXP which i already know it.
i wish i can find a site with full of description like the one which u give me about "blutetooth"

any way thanks again

rose1234 at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 3
I have the same problem as Rose. I have written a very simple client/server application which runs well on lan(the application transfers files).Unfortunately, it doesn′t run well when I try to use it on wifi ad-hoc. My problem is that client can′t connect to the server (i did not have those problems on lan).
Should I use a specific AddressFamily or ProtocolType when creating the socket?
This is my code when creating the socket:

m_mainSocket = new Socket(AddressFamily.InterNetwork,

SocketType.Stream,

ProtocolType.Tcp);

Thanks for your help :-)
ccoxon at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 4
Hi,
I have a related question. Can we use the .Net framework to write drivers for Wi-Fi connections? Typically laptops with Windows XP have a Intel Centrino Wi-Fi card. However the underlying Wi-Fi chip (intel etc) should'nt matter if Windows provides a common API to access them to do some basic functionality such as Scan, Join etc which are part of the standard wi-fi protocol. Would anyone know if this is possible?

Thanks,
kopi

kopi at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 5
There is no out of the box way to do this.
You could always do P/Invokes :-)
DurgaprasadGorti at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 6

Your code is correct. Did you try pinging the server from your WiFI adhoc.

MalarChinnusamy at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 7

Do you know what p/invokes you would use? All I can find is windows vista NativeWifi and I am even having trouble finding out what dll to call it out of.

thoughts?

thanx

LangdonWhite at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...

.NET Development

Site Classified