}
Transmitter::Transmitter(const string& _host, const Connection::Port& _port):
- Connection(sockbuf::sock_dgram) {
+ Connection(sockbuf::sock_dgram, _host, _port) {
#ifdef DEBUG
- cerr << __FILE__ << ": host = " << _host
- << " | port = " << _port << endl;
+ cerr << __FILE__ << ": _host = " << _host
+ << " | _port = " << _port << endl;
#endif // DEBUG
- socket->connect(_host.c_str(), _port);
+ socket->connect(host.c_str(), port);
host = socket->peerhost();
port = socket->peerport();
}