Cocoa networking help?

Jump to First Reply
Posted:
in General Discussion edited January 2014
I'm after info on cocoa networking. I'm a novice developer (to Cocoa, anyhow) and am trying to learn Cocoa programming by working on a project. This project is a client for a multi-user bell ringing simulator (spec here) that a friend is writing.



I'm after what framework to use to take care of the networking. I would ideally like something that I could set listening and then whenever it receives a packet it calls a delegate, or something along those lines. The problem is packets are variable length, so I can't ask it to read for a certain length at a time.



I've looked at Omni's networking framework but it seems to require multithreading. I've also looked at AGKit which looks ok, but has not been updated for a while.



Is there anything built into Cocoa that I could use? NSFileHandle seems to read to the end of the file each time, not to whatever the packet separator character is (it's probably a \

newline). I have no problem only targetting Tiger if there are some new APIs.



Thanks for your help.



Amorya

Comments

  • Reply 1 of 1
    toweltowel Posts: 1,479member
    I have no idea, but have you tried searching the Cocoa mailing list archive?
     0Likes 0Dislikes 0Informatives
Sign In or Register to comment.