Re: iphone to mac ..
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