~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/oldlibdrizzle/oldlibdrizzle.h

Fixed bashism.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
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
22
22
 
23
23
#include <drizzled/plugin/listen_tcp.h>
24
24
#include <drizzled/plugin/client.h>
25
25
 
26
26
#include "net_serv.h"
27
27
 
28
 
class ListenDrizzleProtocol: public drizzled::plugin::ListenTcp
 
28
class ListenOldLibdrizzle: public drizzled::plugin::ListenTcp
29
29
{
30
 
private:
31
 
  bool using_mysql41_protocol;
32
 
 
33
30
public:
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)
37
33
  { }
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);
41
37
};
42
38
 
43
 
class ClientDrizzleProtocol: public drizzled::plugin::Client
 
39
class ClientOldLibdrizzle: public drizzled::plugin::Client
44
40
{
45
41
private:
46
42
  NET net;
47
43
  String packet;
48
44
  uint32_t client_capabilities;
49
 
  bool using_mysql41_protocol;
50
45
 
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);
54
49
 
55
50
public:
56
 
  ClientDrizzleProtocol(int fd, bool using_mysql41_protocol_arg);
57
 
  virtual ~ClientDrizzleProtocol();
 
51
  ClientOldLibdrizzle(int fd);
 
52
  virtual ~ClientOldLibdrizzle();
58
53
 
59
54
  virtual int getFileDescriptor(void);
60
55
  virtual bool isConnected();
87
82
  virtual bool wasAborted(void);
88
83
};
89
84
 
90
 
#endif /* PLUGIN_DRIZZLE_PROTOCOL_OLDLIBDRIZZLE_H */
 
85
#endif /* PLUGIN_OLDLIBDRIZZLE_OLDLIBDRIZZLE_H */