stream_read
len = stream_read(cfd, buf, VERSION_LENGTH);
len = stream_read(cfd, buf, 1);
len = stream_read(cfd, buf, AUTH_LENGTH);
len = stream_read(cfd, buf, 1);
len = stream_read(cfd, (uint8_t *)&pixfmt_msg + 1,
len = stream_read(cfd, (uint8_t *)&enc_msg + 1, sizeof(enc_msg) - 1);
len = stream_read(cfd, &encoding, sizeof(encoding));
len = stream_read(cfd, (uint8_t *)&updt_msg + 1,
len = stream_read(cfd, (uint8_t *)&key_msg + 1,
len = stream_read(cfd, (uint8_t *)&client_msg + 1,
len = stream_read(cfd, (uint8_t *)&extkey_msg + 2,
len = stream_read(cfd, (uint8_t *)&ptr_msg + 1, sizeof(ptr_msg) - 1);
len = stream_read(cfd, (uint8_t *)&ct_msg + 1, sizeof(ct_msg) - 1);
len = stream_read(cfd, buf, ct_msg.length > sizeof(buf) ?
ssize_t stream_read(int fd, void *buf, ssize_t nbytes);