~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/drizzle_protocol/drizzle_protocol.h

  • Committer: Brian Aker
  • Date: 2010-10-28 17:12:01 UTC
  • mfrom: (1887.1.3 merge)
  • Revision ID: brian@tangent.org-20101028171201-baj6l1bnntn1s4ad
Merge in POTFILES changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
#include "plugin/mysql_protocol/mysql_protocol.h"
31
31
 
32
 
namespace drizzle_plugin
33
 
{
34
32
namespace drizzle_protocol
35
33
{
36
34
 
37
35
class ListenDrizzleProtocol: public ListenMySQLProtocol
38
36
{
39
37
public:
40
 
  ListenDrizzleProtocol(std::string name, 
41
 
                        const std::string &bind_address,
42
 
                        bool using_mysql41_protocol):
43
 
    ListenMySQLProtocol(name, bind_address, using_mysql41_protocol)
 
38
  ListenDrizzleProtocol(std::string name_arg, bool using_mysql41_protocol_arg):
 
39
    ListenMySQLProtocol(name_arg, using_mysql41_protocol_arg)
44
40
  { }
45
41
 
46
42
  ~ListenDrizzleProtocol();
 
43
 
 
44
  const char* getHost(void) const;
47
45
  in_port_t getPort(void) const;
48
 
  static ProtocolCounters *drizzle_counters;
49
 
  virtual ProtocolCounters *getCounters(void) const { return drizzle_counters; }
50
 
  drizzled::plugin::Client *getClient(int fd);
51
 
};
52
 
 
53
 
class ClientDrizzleProtocol: public ClientMySQLProtocol
54
 
{
55
 
public:
56
 
  ClientDrizzleProtocol(int fd, ProtocolCounters *set_counters): ClientMySQLProtocol(fd, true, set_counters) {}
57
 
 
58
 
  static std::vector<std::string> drizzle_admin_ip_addresses;
59
 
  static void drizzle_compose_ip_addresses(std::vector<std::string> options);
60
 
  bool isAdminAllowed(void);
61
 
};
 
46
};
 
47
 
62
48
 
63
49
} /* namespace drizzle_protocol */
64
 
} /* namespace drizzle_plugin */
65
 
 
 
50
 
66
51
#endif /* PLUGIN_DRIZZLE_PROTOCOL_DRIZZLE_PROTOCOL_H */