clien gets bytes and writes them to console