2012-01-06 12:43:18 +01:00
|
|
|
/* Copyright (C) 2012 MariaDB Services and Kristian Nielsen
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; version 2 of the License.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
Update FSF address
This commit is based on the work of Michal Schorm, rebased on the
earliest MariaDB version.
Th command line used to generate this diff was:
find ./ -type f \
-exec sed -i -e 's/Foundation, Inc., 59 Temple Place, Suite 330, Boston, /Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, /g' {} \; \
-exec sed -i -e 's/Foundation, Inc. 59 Temple Place.* Suite 330, Boston, /Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, /g' {} \; \
-exec sed -i -e 's/MA.*.....-1307.*USA/MA 02110-1335 USA/g' {} \; \
-exec sed -i -e 's/Foundation, Inc., 59 Temple/Foundation, Inc., 51 Franklin/g' {} \; \
-exec sed -i -e 's/Place, Suite 330, Boston, MA.*02111-1307.*USA/Street, Fifth Floor, Boston, MA 02110-1335 USA/g' {} \; \
-exec sed -i -e 's/MA.*.....-1307/MA 02110-1335/g' {} \;
2019-05-10 19:49:46 +02:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA */
|
2012-01-06 12:43:18 +01:00
|
|
|
|
|
|
|
/* Common definitions for MariaDB non-blocking client library. */
|
|
|
|
|
|
|
|
#ifndef MYSQL_ASYNC_H
|
|
|
|
#define MYSQL_ASYNC_H
|
|
|
|
|
|
|
|
extern int my_connect_async(struct mysql_async_context *b, my_socket fd,
|
|
|
|
const struct sockaddr *name, uint namelen,
|
2012-10-12 11:00:01 +02:00
|
|
|
int vio_timeout);
|
2017-09-28 12:38:02 +02:00
|
|
|
extern ssize_t my_recv_async(struct mysql_async_context *b, my_socket fd,
|
2012-10-12 11:00:01 +02:00
|
|
|
unsigned char *buf, size_t size, int timeout);
|
2017-09-28 12:38:02 +02:00
|
|
|
extern ssize_t my_send_async(struct mysql_async_context *b, my_socket fd,
|
2012-01-06 12:43:18 +01:00
|
|
|
const unsigned char *buf, size_t size,
|
2012-10-12 11:00:01 +02:00
|
|
|
int timeout);
|
|
|
|
extern my_bool my_io_wait_async(struct mysql_async_context *b,
|
|
|
|
enum enum_vio_io_event event, int timeout);
|
2012-01-08 10:13:39 +01:00
|
|
|
#ifdef HAVE_OPENSSL
|
2012-01-06 12:43:18 +01:00
|
|
|
extern int my_ssl_read_async(struct mysql_async_context *b, SSL *ssl,
|
|
|
|
void *buf, int size);
|
|
|
|
extern int my_ssl_write_async(struct mysql_async_context *b, SSL *ssl,
|
|
|
|
const void *buf, int size);
|
2012-01-08 10:13:39 +01:00
|
|
|
#endif
|
2012-01-06 12:43:18 +01:00
|
|
|
|
|
|
|
#endif /* MYSQL_ASYNC_H */
|