32
32
#include "plugin/mysql_protocol/mysql_protocol.h"
34
namespace drizzle_plugin
34
36
namespace mysql_unix_socket_protocol
37
39
class Protocol: public ListenMySQLProtocol
39
const boost::filesystem::path unix_socket_path;
41
const boost::filesystem::path _unix_socket_path;
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)
49
52
bool getFileDescriptors(std::vector<int> &fds);
51
const char* getHost(void) const;
52
54
in_port_t getPort(void) const;
56
58
} /* namespace mysql_unix_socket_protocol */
59
} /* namespace drizzle_plugin */
58
61
#endif /* PLUGIN_MYSQL_UNIX_SOCKET_PROTOCOL_PROTOCOL_H */