iPhone SDK connecting WiFi

Discussion in 'iOS Programming' started by Soulstorm, Jun 11, 2009.

  1. Soulstorm macrumors 68000

    Soulstorm

    Joined:
    Feb 1, 2005
    #1
    I have an application and I need it to send and receive data over wifi.

    Can anyone point me into the right direction? I don't know where to start or what frameworks I must use... Some say that I should use Bonjour, but I don't even know how to operate Apple's sample code like WiTap for that.

    Isn't Apple's WiTap example supposed to find my computer via WiFi? Well, I have my computer wirelessly connected to an Airport express base station, but WiTap doesn't recognize it... Same thing happens when using BonjourWeb. No results show up on the screen of my iPhone.

    Can anyone point me into the right direction or at least tell me if Apple's sample code worked for him?
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    No, WiTap is meant to find other iPhones / iPod touches on your network and communicate with them.

    I'd suggest you start here: Getting Started with Networking & Internet
     
  3. ghayenga macrumors regular

    Joined:
    Jun 18, 2008
    #3
    Apple's WiTap example is supposed to find other services running that Bonjour service. And your computer doesn't do that by itself.

    You would have to write a Mac program that registers for that Bonjour service and then you iPhone could find it.
     

Share This Page