Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-11-2009, 04:41 AM   #4 (permalink)
mnemonic_fx
Registered Member
 
mnemonic_fx's Avatar
 
Join Date: Jun 2008
Posts: 419
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
 

» Advertisements
» Online Users: 700
20 members and 680 guests
ADY, ckgni, creyon, frankenkat, F_Bryant, GameViewPoint, iphonesdkdevnewbie, JasonR, joeallenpro, LiquidFire, lmpeejay, MasterofHubes, mathieuh, mer10, mistergreen2011, Phi, ra0094, Raggou, Tanya Mir, walter_yaron
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,741
Threads: 89,197
Posts: 380,546
Top Poster: BrianSlick (7,129)
Welcome to our newest member, AlexRob58
Powered by vBadvanced CMPS v3.1.0

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