~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_unix_socket_protocol/protocol.h

  • Committer: Barry.Leslie at PrimeBase
  • Date: 2011-01-22 03:22:44 UTC
  • mfrom: (2101 staging)
  • mto: (2228.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2230.
  • Revision ID: barry.leslie@primebase.com-20110122032244-ukbe3mlj7fs8xph6
Merged with lp:drizzle.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
  bool getFileDescriptors(std::vector<int> &fds);
53
53
 
54
54
  in_port_t getPort(void) const;
 
55
  static ProtocolCounters *mysql_unix_counters;
 
56
  virtual ProtocolCounters *getCounters(void) const {return mysql_unix_counters; }
 
57
  drizzled::plugin::Client *getClient(int fd);
 
58
};
 
59
 
 
60
class ClientMySQLUnixSocketProtocol: public ClientMySQLProtocol
 
61
{
 
62
public:
 
63
  ClientMySQLUnixSocketProtocol(int fd, bool __using_mysql41_protocol, ProtocolCounters *set_counters): ClientMySQLProtocol(fd, __using_mysql41_protocol, set_counters) {}
 
64
 
 
65
  /* Unix socket protocol is for MySQL compatibility so do not allow admin connections */
 
66
  bool isAdminAllowed(void) { return false; }
55
67
};
56
68
 
57
69