27 #if !defined(MYSQLPP_TCP_CONNECTION_H)
28 #define MYSQLPP_TCP_CONNECTION_H
62 TCPConnection(
const char* addr,
const char* db = 0,
const char* user = 0,
63 const char* password = 0) :
66 connect(addr, db, user, password);
89 bool connect(
const char* addr = 0,
const char* db = 0,
90 const char* user = 0,
const char* password = 0);
119 static bool parse_address(std::string& addr,
unsigned int& port,
127 TCPConnection(
const char*,
const char*,
const char*,
const char*,
132 bool connect(
const char*,
const char*,
const char*,
const char*,
133 unsigned int) {
return false; }
Manages the connection to the database server.
Definition: connection.h:60
Specialization of Connection for TCP/IP.
Definition: tcp_connection.h:40
TCPConnection(const char *addr, const char *db=0, const char *user=0, const char *password=0)
Create object and connect to database server over TCP/IP in one step.
Definition: tcp_connection.h:62
TCPConnection()
Create object without connecting it to the MySQL server.
Definition: tcp_connection.h:43
~TCPConnection()
Destroy object.
Definition: tcp_connection.h:79
TCPConnection(const TCPConnection &other)
Establish a new connection using the same parameters as an existing connection.
Definition: tcp_connection.h:73
Declares the Connection class.