• 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: Scott Ellsworth <email@hidden>
  • Date: Wed, 27 Apr 2011 10:07:59 -0700

Reread the suggestions.  Keith suggested CFNetwork and CFSocket.h to handle
BSD sockets, JohnP and JohnJ gave documentation and sample code.

Have you looked at the resources?

For what it is worth, I write Java servers regularly  Serving some xml or
json over http has some advantages, but if the server is already written,
and you do not wish to change it, the suggestions above should be enough to
get started.

Scott

On Wed, Apr 27, 2011 at 9:25 AM, Bing Li <email@hidden> wrote:

> Dear Conrad,
>
> I appreciate so much for your reply!
>
> I have a Java based server. So iPad needs to communicate with it. Moreover,
> I hope a P2P model can be established between the server and multiple
> iPads.
> 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.
>
> Thanks so much!
> Bing
>
> On Thu, Apr 28, 2011 at 12:01 AM, Conrad Shultz <
> email@hidden> wrote:
>
> > Why would the platform, architecture, or server language impact the
> > implementation of a network client application? That sort of defeats the
> > whole point of TCP/IP and the rest of the protocol stack...
> >
> > Can you elaborate more on what you are trying to do? It sounds to me like
> > you are putting the cart before the horse.
> >
> > --
> > Conrad Shultz
> > Synthetiq Solutions
> > www.synthetiqsolutions.com
> > twitter.com/TechConrad
> >
> >
> > On Apr 27, 2011, at 2:09, Bing Li <email@hidden> wrote:
> >
> > > Dear Keith and all,
> > >
> > > I hope my iPad could communicate with my servers. The servers run Java.
> > > However, I don't want to use Web services. So I hope I could use BSD
> > sockets
> > > to talk with remote Java servers. I think XML should be utilized too
> for
> > > this case.
> > >
> > > I am not sure if it is possible to do that.
> > >
> > > Best regards,
> > > Bing
> > >
> > > On Mon, Apr 25, 2011 at 11:42 PM, Keith Duncan <email@hidden>
> > wrote:
> > >
> > >>
> > >> On 25 Apr 2011, at 16:00, Bing Li wrote:
> > >>
> > >>> Dear Marcus,
> > >>>
> > >>> Could you tell me which features are not available when using BSD
> > sockets
> > >> on
> > >>> iOS? Although I would like to use CFNetwork APIs, I cannot find
> enough
> > >>> materials to learn how to use them. The guide from apple.com is too
> > >> limited
> > >>> to be useful. Could you provide me with other resources about
> CFNetwork
> > >>> APIs.
> > >>
> > >> If I recall correctly, using the socket() API directly won't bring the
> > WWAN
> > >> radio online, you need to use CoreFoundation API or higher for this to
> > >> happen.
> > >>
> > >> The CFNetwork adds very little on top of BSD sockets, the biggest
> > feature
> > >> being CFRunLoop integration, where the system will create and manage a
> > >> select() (or equivalent) loop for you.
> > >>
> > >> Take a look at CFSocket.h to get started.
> > >>
> > >> Keith
> > >>
> > >>
> > > _______________________________________________
> > >
> > > 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
>
_______________________________________________

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: Shawn Bakhtiar <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>)

  • Prev by Date: Re: Properties vs Instance Variables
  • Next by Date: Re: Stack of NSWindow sheets
  • Previous by thread: Re: BSD TCP Programming on iPad
  • Next by thread: RE: BSD TCP Programming on iPad
  • Index(es):
    • Date
    • Thread