add java sockets example