How to send a string to a UDP socket in iOS7?

I am trying to send a simple string on top of UDP in my iOS7 application to a known IP address and cannot find a simple explanation and sample code on how to do this. There's a lot about TCP, but not about UDP, and in my case it should be UDP.

+4
source share
2 answers

You can use https://github.com/robbiehanson/CocoaAsyncSocket , which is the Objective-C wrapper for TCP and UDP connections. It also contains sample code for TCP and UPD clients and servers.

+2
source

gist. .

+1

All Articles