~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to vio/vio_priv.h

  • Committer: Brian Aker
  • Date: 2008-07-01 20:14:24 UTC
  • Revision ID: brian@tangent.org-20080701201424-rsof5enxl7gkr50p
More cleanup on pread()

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
/* Structures and functions private to the vio package */
17
17
 
18
18
#define DONT_MAP_VIO
19
 
#include <drizzled/global.h>
20
 
#include <libdrizzle/libdrizzle.h>
21
 
#include <mysys/my_sys.h>
22
 
#include <string.h>
 
19
#include <my_global.h>
 
20
#include <mysql_com.h>
 
21
#include <my_sys.h>
 
22
#include <m_string.h>
23
23
#include <violite.h>
24
24
 
25
 
#include <netinet/tcp.h>
 
25
/* Windows lacks a netdb.h */
 
26
#ifdef __WIN__
 
27
#include <Ws2tcpip.h>
 
28
#else
26
29
#include <sys/socket.h>
27
 
#include <sys/poll.h>
28
 
 
29
30
#include <netdb.h>
30
 
 
31
 
void vio_ignore_timeout(Vio *vio, bool is_sndtimeo, int32_t timeout);
32
 
void vio_timeout(Vio *vio, bool is_sndtimeo, int32_t timeout);
 
31
#endif
 
32
 
 
33
 
 
34
void    vio_ignore_timeout(Vio *vio, uint which, uint timeout);
 
35
void    vio_timeout(Vio *vio,uint which, uint timeout);
 
36
 
 
37
#ifdef HAVE_OPENSSL
 
38
#include "my_net.h"                     /* needed because of struct in_addr */
 
39
 
 
40
size_t  vio_ssl_read(Vio *vio,uchar* buf,       size_t size);
 
41
size_t  vio_ssl_write(Vio *vio,const uchar* buf, size_t size);
 
42
 
 
43
/* When the workday is over... */
 
44
int vio_ssl_close(Vio *vio);
 
45
void vio_ssl_delete(Vio *vio);
 
46
 
 
47
int vio_ssl_blocking(Vio *vio, my_bool set_blocking_mode, my_bool *old_mode);
 
48
 
 
49
#endif /* HAVE_OPENSSL */