Very simple way to use sockets in java