~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/vio.h

  • Committer: Monty Taylor
  • Date: 2008-11-07 00:24:33 UTC
  • mfrom: (575.2.2 devel)
  • mto: This revision was merged to the branch mainline in revision 579.
  • Revision ID: monty@inaugust.com-20081107002433-vj1371j0ko3i194x
MergedĀ fromĀ devel.

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 LIBDRIZZLE_VIO_H
 
22
#define LIBDRIZZLE_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
 
 
40
 
struct st_vio;                                  /* Only C */
41
39
typedef struct st_vio Vio;
42
40
 
43
41
#define VIO_LOCALHOST 1                         /* a localhost connection */
77
75
 
78
76
void vio_end(void);
79
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
 
80
81
#ifdef  __cplusplus
81
82
}
82
83
#endif
108
109
  SSL_TYPE_SPECIFIED
109
110
};
110
111
 
111
 
 
112
112
/* HFTODO - hide this if we don't want client in embedded server */
113
113
/* This structure is for every connection on both sides */
114
114
struct st_vio
141
141
  void    (*timeout)(Vio*, bool is_sndtimeo, int32_t timeout);
142
142
  char                  *read_buffer;   /* buffer for vio_read_buff */
143
143
};
144
 
#endif /* vio_violite_h_ */
 
144
 
 
145
#endif /* LIBDRIZZLE_VIO_H */