client_unpack
static int client_unpack(char *, size_t, ri_client_t *);
if (client_unpack(buf, size, tmp) != 0)