new versions of the sockets classes

new versions of the sockets classes, easier to use