17
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
#ifndef PLUGIN_DRIZZLE_PROTOCOL_OLDLIBDRIZZLE_H
21
#define PLUGIN_DRIZZLE_PROTOCOL_OLDLIBDRIZZLE_H
20
#ifndef PLUGIN_OLDLIBDRIZZLE_OLDLIBDRIZZLE_H
21
#define PLUGIN_OLDLIBDRIZZLE_OLDLIBDRIZZLE_H
23
23
#include <drizzled/plugin/listen_tcp.h>
24
24
#include <drizzled/plugin/client.h>
26
26
#include "net_serv.h"
28
class ListenDrizzleProtocol: public drizzled::plugin::ListenTcp
28
class ListenOldLibdrizzle: public drizzled::plugin::ListenTcp
31
bool using_mysql41_protocol;
34
ListenDrizzleProtocol(std::string name_arg, bool using_mysql41_protocol_arg):
35
drizzled::plugin::ListenTcp(name_arg),
36
using_mysql41_protocol(using_mysql41_protocol_arg)
31
ListenOldLibdrizzle(std::string name_arg)
32
: drizzled::plugin::ListenTcp(name_arg)
38
34
virtual const char* getHost(void) const;
39
35
virtual in_port_t getPort(void) const;
40
36
virtual drizzled::plugin::Client *getClient(int fd);
43
class ClientDrizzleProtocol: public drizzled::plugin::Client
39
class ClientOldLibdrizzle: public drizzled::plugin::Client
48
44
uint32_t client_capabilities;
49
bool using_mysql41_protocol;
51
46
bool checkConnection(void);
52
47
bool netStoreData(const unsigned char *from, size_t length);
53
48
void writeEOFPacket(uint32_t server_status, uint32_t total_warn_count);
56
ClientDrizzleProtocol(int fd, bool using_mysql41_protocol_arg);
57
virtual ~ClientDrizzleProtocol();
51
ClientOldLibdrizzle(int fd);
52
virtual ~ClientOldLibdrizzle();
59
54
virtual int getFileDescriptor(void);
60
55
virtual bool isConnected();