9 stat = DB_PROTOCOL_ERR;
11 if (stat == DB_PROTOCOL_ERR)
22 stat = DB_PROTOCOL_ERR;
24 if (stat == DB_PROTOCOL_ERR)
36 stat = DB_PROTOCOL_ERR;
39 stat = DB_PROTOCOL_ERR;
41 if (stat == DB_PROTOCOL_ERR)
55 if (!
db__recv(&count,
sizeof(count)))
56 stat = DB_PROTOCOL_ERR;
60 *x = a = (
float *)
db_calloc(count,
sizeof(*a));
62 if (!
db__recv(a, count *
sizeof(*a)))
63 stat = DB_PROTOCOL_ERR;
65 if (stat == DB_PROTOCOL_ERR)
int db__send(const void *buf, size_t size)
void * db_calloc(int n, int m)
void db_protocol_error(void)
int db__send_float(float d)
int db__recv(void *buf, size_t size)
int db__send_float_array(const float *x, int n)
int db__recv_float(float *d)
int db__recv_float_array(float **x, int *n)