Cleaner select (with less branches)
Moved all select statements to a single function
Added max() macro to Socket
Merge pull request #7 from blootsvoets/cleanselect

Moved select into a single function and reduced branching in InThreadSendRecv