[Request] Bonjour

Discussion in 'iOS Development' started by JoshuaCaputo, Apr 15, 2010.

  1. JoshuaCaputo

    JoshuaCaputo New Member

    Joined:
    Aug 2, 2008
    Messages:
    605
    Likes Received:
    0
    Device:
    iPod touch
    Really having trouble setting up a bonjour client on the mac and on the iphone to communicate.

    Please Register or Log in to view images



    Any Tutorials?
  2. lauNchD

    lauNchD Well-Known Member

    Joined:
    Jan 27, 2008
    Messages:
    1,844
    Likes Received:
    261
    Device:
    iPhone 5 (Black)
    There are several Bonjour tutorials available, for Mac as well as for the iPhone (google them).
    Using the actual NSNetService* classes is easy; the "hard" part is setting up the TCP connection/sockets/etc.
  3. bddckr

    bddckr Active Member

    Joined:
    Dec 2, 2007
    Messages:
    1,434
    Likes Received:
    18
    Device:
    iPhone 4 (Black)
    This is where MYNetwork kicks in!
    You could even use it for the bonjour stuff.
  4. lauNchD

    lauNchD Well-Known Member

    Joined:
    Jan 27, 2008
    Messages:
    1,844
    Likes Received:
    261
    Device:
    iPhone 5 (Black)
    Awesome! This seems to be one of the best Cocoa [Touch] Bonjour/TCP libraries!
  5. Axis

    Axis Super Moderator Staff Member

    Joined:
    Dec 2, 2007
    Messages:
    6,288
    Likes Received:
    133
    Device:
    iPhone 4S (White)
    eh, C sockets aren't that bad.
  6. bddckr

    bddckr Active Member

    Joined:
    Dec 2, 2007
    Messages:
    1,434
    Likes Received:
    18
    Device:
    iPhone 4 (Black)
    For a newbie of network programming it is.

    Please Register or Log in to view images

    And I really think one should use as much high level APIs as possible (especially when it's open source!

    Please Register or Log in to view images

    )
  7. lauNchD

    lauNchD Well-Known Member

    Joined:
    Jan 27, 2008
    Messages:
    1,844
    Likes Received:
    261
    Device:
    iPhone 5 (Black)
    I know, that's why I put the "hard" in quotation marks. Nevertheless, I agree with ChriB about using-high level APIs; if you're already using Cocoa and MVC, and unless low-level networking isn't essential to your app, sticking with higher-level Objective-C classes is usually easier and fits better into your existing model.

Share This Page