Eneboo - Documentación para desarrolladores
|
00001 /* Copyright (C) 2003 MySQL AB 00002 00003 This program is free software; you can redistribute it and/or modify 00004 it under the terms of the GNU General Public License as published by 00005 the Free Software Foundation; version 2 of the License. 00006 00007 This program is distributed in the hope that it will be useful, 00008 but WITHOUT ANY WARRANTY; without even the implied warranty of 00009 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00010 GNU General Public License for more details. 00011 00012 You should have received a copy of the GNU General Public License 00013 along with this program; if not, write to the Free Software 00014 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ 00015 00016 /* Structures and functions private to the vio package */ 00017 00018 #define DONT_MAP_VIO 00019 #include <my_global.h> 00020 #include <mysql_com.h> 00021 #include <my_sys.h> 00022 #include <m_string.h> 00023 #include <violite.h> 00024 00025 void vio_ignore_timeout(Vio *vio, uint which, uint timeout); 00026 void vio_timeout(Vio *vio,uint which, uint timeout); 00027 00028 #ifdef HAVE_OPENSSL 00029 #include "my_net.h" /* needed because of struct in_addr */ 00030 00031 int vio_ssl_read(Vio *vio,gptr buf, int size); 00032 int vio_ssl_write(Vio *vio,const gptr buf,int size); 00033 00034 /* When the workday is over... */ 00035 int vio_ssl_close(Vio *vio); 00036 void vio_ssl_delete(Vio *vio); 00037 00038 int vio_ssl_blocking(Vio *vio, my_bool set_blocking_mode, my_bool *old_mode); 00039 00040 #endif /* HAVE_OPENSSL */