From 6983220ff84632481c1628720fe15b8f3ac1c9cb Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Tue, 18 Nov 2003 03:01:40 +0000 Subject: [PATCH] El Transmitter ya anda bien (se puede escuchar con un nc -p [puerto] -l -u :). --- Server/src/transmitter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Server/src/transmitter.cpp b/Server/src/transmitter.cpp index a195f6f..a1ac7b0 100644 --- a/Server/src/transmitter.cpp +++ b/Server/src/transmitter.cpp @@ -46,12 +46,12 @@ Transmitter::~Transmitter(void) { } 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(); } -- 2.43.0