25 #define LIBDRIZZLE_ERRMSG_SIZE 512
26 #define LIBDRIZZLE_SQLSTATE_LENGTH 5
28 namespace drizzle_plugin {
34 unsigned char *buff,*buff_end,*write_pos,*read_pos;
35 unsigned long remain_in_buf,length, buf_length, where_b;
36 unsigned long max_packet,max_packet_size;
37 unsigned int pkt_nr,compress_pkt_nr;
38 unsigned int write_timeout_;
39 unsigned int read_timeout_;
40 unsigned int retry_count;
43 unsigned int last_errno;
46 void init(
int sock, uint32_t buffer_length);
50 bool peer_addr(
char *buf,
size_t buflen, uint16_t&);
51 void keepalive(
bool flag);
53 void set_write_timeout(uint32_t timeout);
54 void set_read_timeout(uint32_t timeout);
55 bool write(
const void*,
size_t);