demo codes written during learning sockets programming