• 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: BSD TCP Programming on iPad
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BSD TCP Programming on iPad


  • Subject: Re: BSD TCP Programming on iPad
  • From: Bing Li <email@hidden>
  • Date: Thu, 28 Apr 2011 16:45:06 +0800

Dear Lance,

Your experiences are important to me. I would like to use BSD sockets to
implement the peer-to-peer model.

I got a basic problem. I follow the book, Unix Network Programming, 3rd
edition. When compiling the simple code, TCPEchoServer, some errors exist in
unp.h. Moreover, the basic APIs, such as Socket, Bind and etc, cannot be
linked.

I commented the lines that cause errors in unp.h. Is it proper? But I don't
know which frameworks in Cocoa should be added so that Socket and Bind can
be compiled.

Could you please give me a hand?

Thanks,
Bing


On Thu, Apr 28, 2011 at 1:12 AM, lbland <email@hidden> wrote:

> hi-
>
> On Apr 27, 2011, at 12:25 PM, Bing Li wrote:
>
> > Therefore, I hope I could use TCP to design the protocol directly instead
> of
> > using HTTP.
> >
> > However, I have NOT got sufficient materials to program TCP on iPad.
>
> It is just BSD sockets ... get the book. It is: UNIX Network Programming by
> Richard Stevens
>
> We turned an iPhone into a custom HTTP web server that we made from scratch
> (using BSD sockets and TCP/IP) and it worked! ... so it is possible,
> especially if you like to roll your own.
>
> thanks!-
>
> -lance
>
>
_______________________________________________

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

  • Follow-Ups:
    • Re: BSD TCP Programming on iPad
      • From: Scott Ribe <email@hidden>
References: 
 >BSD TCP Programming on iPad (From: Bing Li <email@hidden>)
 >Re: BSD TCP Programming on iPad (From: Marcus Karlsson <email@hidden>)
 >Re: BSD TCP Programming on iPad (From: Bing Li <email@hidden>)
 >Re: BSD TCP Programming on iPad (From: Keith Duncan <email@hidden>)
 >Re: BSD TCP Programming on iPad (From: Bing Li <email@hidden>)
 >Re: BSD TCP Programming on iPad (From: Conrad Shultz <email@hidden>)
 >Re: BSD TCP Programming on iPad (From: Bing Li <email@hidden>)
 >Re: BSD TCP Programming on iPad (From: lbland <email@hidden>)

  • Prev by Date: Re: Barcode scanner
  • Next by Date: How to store main window frame to user defaults?
  • Previous by thread: Re: BSD TCP Programming on iPad
  • Next by thread: Re: BSD TCP Programming on iPad
  • Index(es):
    • Date
    • Thread