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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 05-28-2010, 07:54 PM   #1 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 18
idigit is on a distinguished road
Default CFSocket and General Networking Question

I need some serious advice. I have been trying to get this to work for DAYS, and have scoured every resource I can find, even Apple's documentation, with no luck.

Here is my problem: I need to network a Mac and an iPhone and be able to "write messages" back and forth, from one to the other (both ways.)

I have looked at everything from NSSocketPort to CFSocket. I cannot find any valuable resources that tell me how to do this.

I am currently thinking that a CFSocket would be the best option.

Here is what I think I need to do:

1) Create a "server" on the iPhone (I don't know how to do this...)
2) Create a Bonjour service, and start searching on the Mac
3) When it attempts to connect...I get lost.

I have had a lot of experience programming networking in Java (with ObjectOutputStreams and ObjectInputStreams, etc.), but nothing in Objective-C or C.

Also, please don't just point me towards an open-source package. This is something I want to learn and understand...

THANK YOU!
idigit is offline   Reply With Quote
Old 05-28-2010, 09:31 PM   #3 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 18
idigit is on a distinguished road
Default

Helpful resource. I have looked at that resource and find it to be fairly useful.

The one piece I don't understand is the entire concept of getting the ip address, but maybe I just need to read closer.

Thank you for finding that.
idigit is offline   Reply With Quote
Old 08-20-2010, 06:02 PM   #4 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 58
pufftissue is on a distinguished road
Default

Quote:
Originally Posted by idigit View Post
Helpful resource. I have looked at that resource and find it to be fairly useful.

The one piece I don't understand is the entire concept of getting the ip address, but maybe I just need to read closer.

Thank you for finding that.
I find this to be a very hard concept. Despite the tutorials, I simply can not wrap my mind around this.
pufftissue is offline   Reply With Quote
Reply

Bookmarks

Tags
cfnetwork, iphone, mac, networking, stream

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 318
9 members and 309 guests
ajay123123, ashaman64, baja_yu, ChrisYates, HemiMG, newDev, Objective Zero, pkIDSF, Steven.C
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,648
Threads: 94,113
Posts: 402,878
Top Poster: BrianSlick (7,990)
Welcome to our newest member, brandon6031
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:54 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0