~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzleclient/vio.h

  • Committer: Brian Aker
  • Date: 2009-02-05 10:38:55 UTC
  • Revision ID: brian@tangent.org-20090205103855-wajzccrbu7zbvmh4
Reworked some classes out of session.h
Also updated ignore file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * Purpose: include file for Vio that will work with C and C++
19
19
 */
20
20
 
21
 
#ifndef vio_violite_h_
22
 
#define vio_violite_h_
 
21
#ifndef LIBDRIZZLECLIENT_VIO_H
 
22
#define LIBDRIZZLECLIENT_VIO_H
23
23
 
24
24
#include <sys/socket.h>
25
25
#include <errno.h>
36
36
  VIO_TYPE_SSL, VIO_TYPE_SHARED_MEMORY
37
37
};
38
38
 
 
39
typedef struct st_vio Vio;
39
40
 
40
41
#define VIO_LOCALHOST 1                         /* a localhost connection */
41
42
#define VIO_BUFFERED_READ 2                     /* use buffered read */
74
75
 
75
76
void vio_end(void);
76
77
 
 
78
void vio_ignore_timeout(Vio *vio, bool is_sndtimeo, int32_t timeout);
 
79
void vio_timeout(Vio *vio, bool is_sndtimeo, int32_t timeout);
 
80
 
77
81
#ifdef  __cplusplus
78
82
}
79
83
#endif
105
109
  SSL_TYPE_SPECIFIED
106
110
};
107
111
 
108
 
 
109
112
/* HFTODO - hide this if we don't want client in embedded server */
110
113
/* This structure is for every connection on both sides */
111
114
struct st_vio
138
141
  void    (*timeout)(Vio*, bool is_sndtimeo, int32_t timeout);
139
142
  char                  *read_buffer;   /* buffer for vio_read_buff */
140
143
};
141
 
#endif /* vio_violite_h_ */
 
144
 
 
145
#endif /* LIBDRIZZLECLIENT_VIO_H */