Rewrite sockets low level