Added abstraction on UDP and TCP sockets (including servers).