~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_protocol/mysql_protocol.h

  • Committer: Lee Bieber
  • Date: 2010-12-13 18:43:55 UTC
  • mfrom: (1993.3.2 trunk-bug-686773)
  • mto: This revision was merged to the branch mainline in revision 1994.
  • Revision ID: kalebral@gmail.com-20101213184355-tinkj77bvfwwy6ql
Merge Andrew - fix bug 686773: TableFunction::Generator::push() needs assert

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
namespace drizzle_plugin
31
31
{
32
 
void compose_ip_addresses(std::vector<std::string> options);
33
 
 
34
32
class ProtocolCounters
35
33
{
36
34
  public:
38
36
      max_connections(1000)
39
37
    { }
40
38
    drizzled::atomic<uint64_t> connectionCount;
41
 
    drizzled::atomic<uint64_t> adminConnectionCount;
42
39
    drizzled::atomic<uint64_t> failedConnections;
43
40
    drizzled::atomic<uint64_t> connected;
44
 
    drizzled::atomic<uint64_t> adminConnected;
45
41
    uint32_t max_connections;
46
42
};
47
43
 
51
47
 
52
48
class ListenMySQLProtocol: public drizzled::plugin::ListenTcp
53
49
{
54
 
protected:
 
50
private:
55
51
  const std::string _hostname;
56
52
  bool _using_mysql41_protocol;
57
53
 
73
69
 
74
70
class ClientMySQLProtocol: public drizzled::plugin::Client
75
71
{
76
 
protected:
 
72
private:
77
73
  NET net;
78
74
  drizzled::String packet;
79
75
  uint32_t client_capabilities;
80
 
  bool is_admin_connection;
81
76
  bool _using_mysql41_protocol;
82
77
 
83
78
  bool checkConnection(void);
121
116
  virtual bool haveError(void);
122
117
  virtual bool haveMoreData(void);
123
118
  virtual bool wasAborted(void);
124
 
  virtual bool isAdminAllowed(void);
125
 
  static std::vector<std::string> mysql_admin_ip_addresses;
126
 
  static void mysql_compose_ip_addresses(std::vector<std::string> options);
127
119
};
128
120
 
129
121
} /* namespace drizzle_plugin */