Fixed socket initialization
Cleaner sockets implementation, using ISO-C-BINDINGS