开发者

Simple way to send and receive packets?

开发者 https://www.devze.com 2023-02-10 18:57 出处:网络
Could someone please link me to a simple tutorial that allows you to send and receive packets over a web server? All I need to do is be able to send a packet to a certain device with certain contents

Could someone please link me to a simple tutorial that allows you to send and receive packets over a web server? All I need to do is be able to send a packet to a certain device with certain contents and have the device checking for new packets every second. Source code would also be helpful. Thanks for t开发者_如何学Gohe help.


You can look at the documentation for NSConnection, or you can use asihttprequest as a drop-in replacement, which is much better:

http://allseeing-i.com/ASIHTTPRequest/

0

精彩评论

暂无评论...
验证码 换一张
取 消