~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/oldlibdrizzle/options.h

  • Committer: Eric Day
  • Date: 2009-09-23 19:09:31 UTC
  • mto: This revision was merged to the branch mainline in revision 1169.
  • Revision ID: eday@oddments.org-20090923190931-0xgo1un9cfwt2a2d
Client/Listen cleanup, moved globals, console plugin cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
}
77
77
#endif
78
78
 
 
79
#define CLIENT_NET_READ_TIMEOUT    365*24*3600  /* Timeout on read */
 
80
#define CLIENT_NET_WRITE_TIMEOUT  365*24*3600  /* Timeout on write */
 
81
 
 
82
#define CLIENT_LONG_PASSWORD    1       /* new more secure passwords */
 
83
#define CLIENT_FOUND_ROWS       2       /* Found instead of affected rows */
 
84
#define CLIENT_LONG_FLAG        4       /* Get all column flags */
 
85
#define CLIENT_CONNECT_WITH_DB  8       /* One can specify db on connect */
 
86
#define CLIENT_NO_SCHEMA        16      /* Don't allow database.table.column */
 
87
#define CLIENT_COMPRESS         32      /* Can use compression protocol */
 
88
#define CLIENT_ODBC             64      /* Odbc client */
 
89
#define CLIENT_IGNORE_SPACE     256     /* Ignore spaces before '(' */
 
90
#define UNUSED_CLIENT_PROTOCOL_41       512     /* New 4.1 protocol */
 
91
#define CLIENT_SSL              2048    /* Switch to SSL after handshake */
 
92
#define CLIENT_IGNORE_SIGPIPE   4096    /* IGNORE sigpipes */
 
93
#define CLIENT_RESERVED         16384   /* Old flag for 4.1 protocol  */
 
94
#define CLIENT_SECURE_CONNECTION 32768  /* New 4.1 authentication */
 
95
#define CLIENT_MULTI_STATEMENTS (1UL << 16) /* Enable/disable multi-stmt support */
 
96
#define CLIENT_MULTI_RESULTS    (1UL << 17) /* Enable/disable multi-results */
 
97
 
 
98
#define CLIENT_SSL_VERIFY_SERVER_CERT (1UL << 30)
 
99
#define CLIENT_REMEMBER_OPTIONS (1UL << 31)
 
100
 
 
101
/* Gather all possible capabilites (flags) supported by the server */
 
102
#define CLIENT_ALL_FLAGS  (CLIENT_LONG_PASSWORD | \
 
103
                           CLIENT_FOUND_ROWS | \
 
104
                           CLIENT_LONG_FLAG | \
 
105
                           CLIENT_CONNECT_WITH_DB | \
 
106
                           CLIENT_NO_SCHEMA | \
 
107
                           CLIENT_COMPRESS | \
 
108
                           CLIENT_ODBC | \
 
109
                           CLIENT_IGNORE_SPACE | \
 
110
                           CLIENT_SSL | \
 
111
                           CLIENT_IGNORE_SIGPIPE | \
 
112
                           CLIENT_RESERVED | \
 
113
                           CLIENT_SECURE_CONNECTION | \
 
114
                           CLIENT_MULTI_STATEMENTS | \
 
115
                           CLIENT_MULTI_RESULTS | \
 
116
                           CLIENT_SSL_VERIFY_SERVER_CERT | \
 
117
                           CLIENT_REMEMBER_OPTIONS)
 
118
 
 
119
/*
 
120
  Switch off the flags that are optional and depending on build flags
 
121
  If any of the optional flags is supported by the build it will be switched
 
122
  on before sending to the client during the connection handshake.
 
123
*/
 
124
#define CLIENT_BASIC_FLAGS (((CLIENT_ALL_FLAGS & ~CLIENT_SSL) \
 
125
                                               & ~CLIENT_COMPRESS) \
 
126
                                               & ~CLIENT_SSL_VERIFY_SERVER_CERT)
 
127
 
79
128
#endif /* LIBDRIZZLECLIENT_DRIZZLE_OPTIONS_H */