Simple C UDP logging server
I've been using and liking this simple UDP server setup to receive and log stats data from iPhone apps. I'm running this simple UDP server (udps), and using the following code to send UDP datagrams from iPhone apps:
The benefits of this setup are no waiting client side, and low overhead server side (just write to a log file to process later). UDP is unreliable so I could be missing a few datagrams, but I'm just sending stats that are nice to have but not necessary. I process the entire log every once in a while, and stream it back over http to analyze the incoming results in real-time.
Comments [0]