READBUF_SIZE
char buf[READBUF_SIZE];
r = read(fd, buf + buflen, READBUF_SIZE - buflen);
READBUF_SIZE - (be16toh(a->hdr.len)