Add a loop_ prefix to net-server.c functions