teaching myself sockets, threads and inet stuff