• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Socket Programming on iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Socket Programming on iOS (From: Dilum Nawanjana <email@hidden>)

  • Prev by Date: IOKit / OSX: How can I distinguish between "real hard disk" and mounted images?
  • Next by Date: Problem with distributed objects in GUI cocoa apps
  • Previous by thread: Re: Socket Programming on iOS
  • Next by thread: iOS 7 navigation bar height
  • Index(es):
    • Date
    • Thread