sends packet in binary format