title: Server in C accepting UDP and TCP connections
body: <p>I have a problem. I've been developing a Server in C that can accept UDP and TCP clients connections. So i need to know when a connection is UDP and when its a TCP. 
  I've already developed both cases separately, and they work ok.</p>
  
  <p>I've been searching about how to do this, and everything points to the <em>select()</em> function, but i dont know how to use it for this matter.
  Can anyone show me an example or something accepting udp and tcp connections... I'm really lost there.</p>
  
  <p>Thank you very much... </p>