Added an ability to inquire length of the protocol + information about
missing data size when read is unsuccessful.