title: best way to communicate short messages over wifi with hardware device
body: <p>I would like to communicate with a wifi device via an ad-hoc network. The messages received by the iPhone are quite short and the responses also (not more than about 100 bytes). The way it works is that the iPhone app waits to receive messages from the device and then responds with an answer.</p>
  
  <p>SInce I am new to networking I really do not know where to start best. I looked into CFNetwork, asyncsocket project and other links on the net but did not find one single example which I can use as a starting point.</p>
  
  <p>What is the best way to program this kind of wifi communication. I would really love to find a working set of mac and iPhone apps that I could use as a starting point. Later I have to port it to PC using VB.Net. But I could also start with iPhone &lt;-> PC.</p>
  
  <p>Many thanks for your help!</p>