¡@

Home 

2014/10/15 ¤U¤È 10:04:07

iphone Programming Glossary: asyncudpsocket

Typical UDP latency on iPhone over 3G - are my numbers right?

http://stackoverflow.com/questions/17859732/typical-udp-latency-on-iphone-over-3g-are-my-numbers-right

right In order to evaluate TCP versus UDP on the iPhone I wrote a small echo server on my computer and used the AsyncUdpSocket library on the iPhone but latencies are coming out surprisingly large and I wonder if there is something wrong with my implementation..

Sending UDP packets from the iPhone

http://stackoverflow.com/questions/4139021/sending-udp-packets-from-the-iphone

tutorials on sending UDP packets from the iPhone SDK EDIT Was actually really easy to do this... RTFM After including AsyncUdpSocket just add this in header AsyncUdpSocket socket And in main NSData data ... socket sendData data toHost @ 192.168.x.x port.. the iPhone SDK EDIT Was actually really easy to do this... RTFM After including AsyncUdpSocket just add this in header AsyncUdpSocket socket And in main NSData data ... socket sendData data toHost @ 192.168.x.x port 5002 withTimeout 1 tag 1 When testing..

AsyncUdpSocket how to use receive

http://stackoverflow.com/questions/4215149/asyncudpsocket-how-to-use-receive

how to use receive I am trying to get a program for iPhone running on the simulator. My problem is with receiving UDP data... fine. The think i can just not figure out is how the receive functions works. I assume something like this socket AsyncUdpSocket alloc initWithDelegate self socket bindToPort 8000 error nil returns YES socket receiveWithTimeout 1 tag 1 I believe it.. 8000 error nil returns YES socket receiveWithTimeout 1 tag 1 I believe it should then call the method BOOL onUdpSocket AsyncUdpSocket sock didReceiveData NSData data withTag long fromHost NSString host port UInt16 port Well i put a NSLog in that method and..