9 stat = DB_PROTOCOL_ERR;
11 if (stat == DB_PROTOCOL_ERR)
22 stat = DB_PROTOCOL_ERR;
24 if (stat == DB_PROTOCOL_ERR)
35 stat = DB_PROTOCOL_ERR;
38 stat = DB_PROTOCOL_ERR;
40 if (stat == DB_PROTOCOL_ERR)
54 if (!
db__recv(&count,
sizeof(count)))
55 stat = DB_PROTOCOL_ERR;
59 *x = a = (
int *)
db_calloc(count,
sizeof(*a));
61 if (!
db__recv(a, count *
sizeof(*a)))
62 stat = DB_PROTOCOL_ERR;
64 if (stat == DB_PROTOCOL_ERR)
int db__send(const void *buf, size_t size)
void * db_calloc(int n, int m)
int db__send_int_array(const int *x, int n)
void db_protocol_error(void)
int db__recv_int_array(int **x, int *n)
int db__recv(void *buf, size_t size)