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 <dilumnawanj...@gmail.com> 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 (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/piotr%40mobilesoft-lab.com
> 
> This email sent to pi...@mobilesoft-lab.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to