Re: Network communications help
Re: Network communications help
- Subject: Re: Network communications help
- From: Ken Thomases <email@hidden>
- Date: Wed, 11 Feb 2009 00:45:37 -0600
On Feb 10, 2009, at 7:44 PM, email@hidden wrote:
I currently have a RealBasic application that manages a furnace
temperature controller. Using the TCPSocket class in RB the app
listens to a port and I can query this application from other
computers on the LAN and set parameters of the temperature
controller, by passing strings.
What I would like to be able to do, is the same thing from my iPhone
with a Cocoa application. I have only 3 years experience with Cocoa
and none with network comms.
Can someone please explain what would be the best way to achieve
this and where I should start reading.
You can use NSStream objects, obtained from
+getStreamsToHost:port:inputStream:outputStream:.
See the Stream Programming Guide for Cocoa: http://developer.apple.com/documentation/Cocoa/Conceptual/Streams/
Cheers,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden