UDP Ports in Cocoa

Discussion in 'Mac Programming' started by daze, Aug 5, 2007.

  1. macrumors 6502

    daze

    Joined:
    Mar 11, 2006
    Location:
    San Jose, California
    #1
    Hi guys,

    I am new to Cocoa programming, but used to programming in C/C++. How do I go about reading data on a specific UDP port? I have a book on Cocoa but it does not cover any UDP/TCP stuff.

    Thanks.
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    There is no Cocoa API for this as ALL the normal POSIX C APIs are available. Use those or one of the Socket wrappers (free, third party)
     
  3. thread starter macrumors 6502

    daze

    Joined:
    Mar 11, 2006
    Location:
    San Jose, California
    #3
    Robbie,

    What's a good site to find wrappers and other code?
     
  4. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000

Share This Page