~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_protocol/mysql_protocol.h

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef PLUGIN_MYSQL_PROTOCOL_MYSQL_PROTOCOL_H
21
 
#define PLUGIN_MYSQL_PROTOCOL_MYSQL_PROTOCOL_H
 
20
#pragma once
22
21
 
23
22
#include <drizzled/plugin/listen_tcp.h>
24
23
#include <drizzled/plugin/client.h>
25
24
#include <drizzled/atomics.h>
26
 
#include "drizzled/plugin/table_function.h"
 
25
#include <drizzled/plugin/table_function.h>
27
26
 
28
27
#include "net_serv.h"
29
28
 
80
79
  uint32_t client_capabilities;
81
80
  bool is_admin_connection;
82
81
  bool _using_mysql41_protocol;
 
82
  bool _is_interactive;
83
83
 
84
84
  bool checkConnection(void);
85
85
  bool netStoreData(const unsigned char *from, size_t length);
91
91
  ClientMySQLProtocol(int fd, bool _using_mysql41_protocol, ProtocolCounters *set_counters);
92
92
  virtual ~ClientMySQLProtocol();
93
93
 
 
94
  bool isInteractive() const
 
95
  {
 
96
    return _is_interactive;
 
97
  }
 
98
 
 
99
  bool isAdmin() const
 
100
  {
 
101
    return is_admin_connection;
 
102
  }
 
103
 
94
104
  ProtocolCounters *counters;
95
105
 
96
106
  virtual int getFileDescriptor(void);
129
139
 
130
140
} /* namespace drizzle_plugin */
131
141
 
132
 
#endif /* PLUGIN_MYSQL_PROTOCOL_MYSQL_PROTOCOL_H */