Adds TCP and UDP sockets.