~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_unix_socket_protocol/protocol.h

  • Committer: Monty Taylor
  • Date: 2010-12-05 07:48:35 UTC
  • mfrom: (1964.2.22 rip-plugin-sysvar)
  • mto: This revision was merged to the branch mainline in revision 1976.
  • Revision ID: mordred@inaugust.com-20101205074835-hppjgjaaq93t6vdc
Merge Monty: plugin_sysvar removal work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
#include "plugin/mysql_protocol/mysql_protocol.h"
33
33
 
 
34
namespace drizzle_plugin
 
35
{
34
36
namespace mysql_unix_socket_protocol
35
37
{
36
38
 
37
39
class Protocol: public ListenMySQLProtocol
38
40
{
39
 
  const boost::filesystem::path unix_socket_path;
 
41
  const boost::filesystem::path _unix_socket_path;
40
42
public:
41
 
  Protocol(std::string name_arg,
42
 
           bool using_mysql41_protocol_arg,
43
 
           const boost::filesystem::path &unix_socket_path_arg) :
44
 
    ListenMySQLProtocol(name_arg, using_mysql41_protocol_arg),
45
 
    unix_socket_path(unix_socket_path_arg)
 
43
  Protocol(std::string name,
 
44
           bool using_mysql41_protocol,
 
45
           const boost::filesystem::path &unix_socket_path) :
 
46
    ListenMySQLProtocol(name, unix_socket_path.file_string(),
 
47
                        using_mysql41_protocol),
 
48
    _unix_socket_path(unix_socket_path)
46
49
  { }
47
50
 
48
51
  ~Protocol();
49
52
  bool getFileDescriptors(std::vector<int> &fds);
50
53
 
51
 
  const char* getHost(void) const;
52
54
  in_port_t getPort(void) const;
53
55
};
54
56
 
55
57
 
56
58
} /* namespace mysql_unix_socket_protocol */
 
59
} /* namespace drizzle_plugin */
57
60
 
58
61
#endif /* PLUGIN_MYSQL_UNIX_SOCKET_PROTOCOL_PROTOCOL_H */