• 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: iphone to mac ..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iphone to mac ..


  • Subject: Re: iphone to mac ..
  • From: J P May <email@hidden>
  • Date: Fri, 30 Jul 2010 06:52:03 +0200

Well, TCP is old, but not out of date.
My choice usually is to set up a simple Ruby WebService server, and talk to that by http

Alex, in this case I am sending a couple of bytes repeatedly say 30 times a second. (typical game controls) So I assumed (perhaps incorrectly, but that's what i assumed) a httpesque approach would not be ideal. (And, I did not know anyway there was an easy way to set up a Ruby WebService on 10.6/iphone - thanks for the tip)



The best solution I've found is BLIP, by Jens Alfke.
Not sure if that's exactly what you're looking for, but, it is a replacement for the TCPServer sample code.

Brad, you're right, BLIP generally saves the day! I guess it is the new TCPServer sample code. In this case I thought a simpler, lighter approach might be better. And in fact I have found.......



there is actually a NEW !! sample code from Apple in 2010 ... UDPEcho

Yay, Apple!


it's great .. one file, one class, it gives you reliable code to set up a UDP socket. so, we're gonna experiment with that a little.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: iphone to mac ..
      • From: Mark Pauley <email@hidden>
References: 
 >iphone to mac .. (From: J P May <email@hidden>)

  • Prev by Date: Re: iphone to mac ..
  • Next by Date: Re: iphone to mac ..
  • Previous by thread: Re: iphone to mac ..
  • Next by thread: Re: iphone to mac ..
  • Index(es):
    • Date
    • Thread