Web server and socket examples