title: best way to write a linux daemon
body: <p>For work i need to write a tcp daemon to respond to our client software and was wondering if any one had any tips on the best way to go about this.</p>
  
  <p>Should i fork for every new connection as normally i would use threads?</p>