For most things, servers are easy.. a config file for your service, a daemon that runs based on the config file, and maybe some directories or additional bits. Most network services fit right into that paradigm. If you have any questions or whatnot, fire away.
Apple ... yeah, live and learn..