Catch exception by reference
Remove dead code

Q_ASSERT(Compiler isn't a total moron);
Servent: Fix IP protocol version distinction

Uwe failed at C&P!
Reduce variable scopes
Remove break after return, it is redundant
Unsigned comparison <= 0 is identical to check for 0