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 = (
double *)
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__recv_double_array(double **x, int *n)
int db__send_double(double d)
int db__send(const void *buf, size_t size)
void * db_calloc(int n, int m)
void db_protocol_error(void)
int db__send_double_array(const double *x, int n)
int db__recv(void *buf, size_t size)
int db__recv_double(double *d)