Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-11-2009, 03:41 AM   #4 (permalink)
mnemonic_fx
Registered Member
 
mnemonic_fx's Avatar
 
Join Date: Jun 2008
Location: Planet Earth
Posts: 415
Default

To make things easier, better to use combinations of NSStream and CFSocket and its related family.

Check "CocoaEcho" sample code in Apple's developer website.

I've been there with BSD socket, and it's a pain to do asynchronous behavior.

For UDP, you might just have to modify the socket type somewhere, or you could create an Objective-C wrapper out of BSD socket, and integrate with the existing TCP solution.

The WiTap on iPhone is also an example.
__________________
Visit Me

Writing code is not only about writing instructions to a machine / computer, but also about writing something that could be read, understood, and maintained by others. That's why, I like Cocoa.
mnemonic_fx is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,357
Threads: 39,155
Posts: 171,639
Top Poster: smasher (2,577)
Welcome to our newest member, davidm
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:35 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.