bonjour

Discussion in 'iOS Programming' started by chhoda, Jul 2, 2009.

  1. chhoda macrumors 6502

    Joined:
    Oct 25, 2008
    #1
    I was going through WiTap example to see the possibility of my developing a p2p application. I saw it is using TCPServer and then using bonjour to do something

    My question is, is bonjour essential ? cant we do socket communications directly ?

    --CH
     
  2. Troglodyte macrumors member

    Joined:
    Jul 2, 2009
    #2
    Bonjour isn't a replacement for sockets. It's simply a way of publishing and detecting services.
     
  3. chhoda thread starter macrumors 6502

    Joined:
    Oct 25, 2008
    #3
    yeah

    yeah understood, even though i could not understand the protocol fully, i could start working with it ans will learn as i progress.

    One problem is, I have only one mac, how can I test it ? if i intend to test a multiplayer application?

    --CH
     
  4. Troglodyte macrumors member

    Joined:
    Jul 2, 2009
  5. ghayenga macrumors regular

    Joined:
    Jun 18, 2008
    #5
    Not so, with Bonjour you can use one device and the simulator on your computer. I've done it.
     
  6. Troglodyte macrumors member

    Joined:
    Jul 2, 2009
    #6
    I could be pedantic and point out you do still have two devices in that case - a mac and an iPhone/iTouch.
     
  7. chhoda thread starter macrumors 6502

    Joined:
    Oct 25, 2008
    #7
    internet ?

    thanks, got it.

    another question is, can two players create session over internet ? like i hv tested in local network, but i wanna see if i run my app here in my office network and somebody else run app at home who is connected internet through his own internet connection [different than my office connection], still we can create a session and communicatethrough bonjour ?

    regards
    Jagat
     

Share This Page