Re: Socket Programming on iOS
Re: Socket Programming on iOS
- Subject: Re: Socket Programming on iOS
- From: Piotr Pszczółkowski <email@hidden>
- Date: Wed, 16 Apr 2014 21:06:41 +0200
Hi,
maybe will be better to use NSFileHandle?
_fileHandle = [[NSFileHandle alloc] initWithFileDescriptor:<socket file handle>];
NSData *buffer = [_fileHandle readDataOfLength:<n>];
regards
Piotr
On 16 Apr 2014, at 20:42 , Dilum Nawanjana <email@hidden> wrote:
> Listening to a Port from an iOS device is not very easy task in cocoa
> framework. I tried to develop an app that works as a server to listen to a
> port to start the Client Server conversation. I have to read a lot before I
> create that app.
>
> Working as a Client in iOS device is pretty easy. But when it comes to
> Server cocoa framework is not very much handy for that. We have to code
> using basic C language for the implementation.
>
> Do you guys have any suggestion to make it easier?
> _______________________________________________
>
> 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
_______________________________________________
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