Added send/recv to lib/socket.