TCP support added 

Hi - I merged latest from your original code and re-added my code. Btw, I also add a new line to the end of a syslog message. It looks like that a syslog message is supposed to have this  new line. Some servers would wait to see that end of line and when you don't have it, the syslog message just does not go trough.