-ControlClient::ControlClient(string host, int port):
- Connection(sockbuf::sock_stream), host(host), port(port) {
+ControlClient::ControlClient(const string& _host,
+ const Connection::Port& _port) throw(sockerr):
+ Connection(sockbuf::sock_stream, _host, _port) {
+ socket->connect(host.c_str(), port);
+ host = socket->localhost();
+ port = socket->localport();