update lib/net to reflect updated sockets api