[LYSEFGG] sockserv implementation from the same chapter.