MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vio_priv.h
1 /* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License as published by
5  the Free Software Foundation; version 2 of the License.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software
14  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
15 
16 #ifndef VIO_PRIV_INCLUDED
17 #define VIO_PRIV_INCLUDED
18 
19 /* Structures and functions private to the vio package */
20 
21 #define DONT_MAP_VIO
22 #include <my_global.h>
23 #include <mysql_com.h>
24 #include <my_sys.h>
25 #include <m_string.h>
26 #include <violite.h>
27 
28 #ifdef _WIN32
29 size_t vio_read_pipe(Vio *vio, uchar * buf, size_t size);
30 size_t vio_write_pipe(Vio *vio, const uchar * buf, size_t size);
31 my_bool vio_is_connected_pipe(Vio *vio);
32 int vio_shutdown_pipe(Vio * vio);
33 #endif
34 
35 #ifdef HAVE_SMEM
36 size_t vio_read_shared_memory(Vio *vio, uchar * buf, size_t size);
37 size_t vio_write_shared_memory(Vio *vio, const uchar * buf, size_t size);
38 my_bool vio_is_connected_shared_memory(Vio *vio);
39 int vio_shutdown_shared_memory(Vio * vio);
40 void vio_delete_shared_memory(Vio *vio);
41 #endif
42 
43 my_bool vio_buff_has_data(Vio *vio);
44 int vio_socket_io_wait(Vio *vio, enum enum_vio_io_event event);
45 int vio_socket_timeout(Vio *vio, uint which, my_bool old_mode);
46 
47 #ifdef HAVE_OPENSSL
48 #include "my_net.h" /* needed because of struct in_addr */
49 
50 size_t vio_ssl_read(Vio *vio,uchar* buf, size_t size);
51 size_t vio_ssl_write(Vio *vio,const uchar* buf, size_t size);
52 
53 /* When the workday is over... */
54 int vio_ssl_shutdown(Vio *vio);
55 void vio_ssl_delete(Vio *vio);
56 my_bool vio_ssl_has_data(Vio *vio);
57 
58 #endif /* HAVE_OPENSSL */
59 #endif /* VIO_PRIV_INCLUDED */