Re: BSD TCP Programming on iPad
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