Re: network programming
Re: network programming
- Subject: Re: network programming
- From: Jens Alfke <email@hidden>
- Date: Sun, 02 Dec 2012 17:47:19 -0800
On 2 Dec 2012, at 20:46, email@hidden wrote:
> On 2. Dec 2012, at 20:30, Jens Alfke <email@hidden> wrote:
>
>> Doing a TCP server isn’t too hard because CFStream…
>
> looks like there is some misunderstanding here. i don't want to write a TCP server, i want to connect to one. the purpose is to send some commands to the broker and get some data back, then process it and send it on to flightgear.
It wasn’t clear how much you needed. The first sentence in my reply, which you didn’t quote, addressed the client side:
>> Cocoa has some limited support for TCP: you can open a client connection and send and receive data
Basically you just call [NSStream getStreamsToHost: …] and then use the NSInputStream and NSOutputStream it returns.
—Jens
_______________________________________________
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