… | |
… | |
134 | |
134 | |
135 | typedef unsigned char uchar; |
135 | typedef unsigned char uchar; |
136 | |
136 | |
137 | /* HFTODO - hide this if we don't want client in embedded server */ |
137 | /* HFTODO - hide this if we don't want client in embedded server */ |
138 | /* This structure is for every connection on both sides */ |
138 | /* This structure is for every connection on both sides */ |
139 | #if defined(MARIADB_BASE_VERSION) && 0 |
139 | #if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100010 |
140 | |
140 | |
141 | #define DESC_IS_PTR 1 |
141 | #define DESC_IS_PTR 1 |
142 | |
142 | |
143 | struct st_vio |
143 | struct st_vio |
144 | { |
144 | { |
… | |
… | |
226 | char desc[30]; /* String description */ |
226 | char desc[30]; /* String description */ |
227 | char *read_buffer; /* buffer for vio_read_buff */ |
227 | char *read_buffer; /* buffer for vio_read_buff */ |
228 | char *read_pos; /* start of unfetched data in the |
228 | char *read_pos; /* start of unfetched data in the |
229 | read buffer */ |
229 | read buffer */ |
230 | char *read_end; /* end of unfetched data */ |
230 | char *read_end; /* end of unfetched data */ |
|
|
231 | #if defined(MARIADB_BASE_VERSION) |
|
|
232 | struct mysql_async_context *async_context; /* For non-blocking API */ |
|
|
233 | uint read_timeout, write_timeout; |
|
|
234 | #endif |
231 | /* function pointers. They are similar for socket/SSL/whatever */ |
235 | /* function pointers. They are similar for socket/SSL/whatever */ |
232 | void (*viodelete)(Vio*); |
236 | void (*viodelete)(Vio*); |
233 | int (*vioerrno)(Vio*); |
237 | int (*vioerrno)(Vio*); |
234 | size_t (*read)(Vio*, unsigned char *, size_t); |
238 | size_t (*read)(Vio*, unsigned char *, size_t); |
235 | size_t (*write)(Vio*, const unsigned char *, size_t); |
239 | size_t (*write)(Vio*, const unsigned char *, size_t); |