Handle query strings using socket programming
Hi, I need to make a daemon which listens to port 81 for messages like http://localhost/message?command=move&dir=left
So far I made a daemon which serves as a simple stream server: I set up a socket to listen to a non-reserved port (like 9999), but I don't know how to read the query strings.
Linux distro: Kubuntu 9.04
Language: C
Best free guide for network programming
Beejs Network Programming Guide
You can learn a lot here plus there is a lot of example code for doing all sorts of things from UDP to MT TCP servers....
Peace
Jeff