X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/212f9ae5dc8899bab8b23ed13d81c28c510db3c3..1767eccd7e3ea6de4101d6d29c1d29ac0fba2a51:/Server/src/connection.cpp?ds=sidebyside diff --git a/Server/src/connection.cpp b/Server/src/connection.cpp index c355c86..31aaf1a 100644 --- a/Server/src/connection.cpp +++ b/Server/src/connection.cpp @@ -79,23 +79,20 @@ void Connection::finish(void) { cerr << __FILE__ << "(" << __LINE__ << ")" << ": finish();" << endl; #endif // DEBUG - //socket_mutex.lock(); + Runnable::finish(); try { + // Para que el socket retorne el control, cierro sus canales de E/S. socket->shutdown(sockbuf::shut_readwrite); - // FIXME socket->close(sockbuf::shut_readwrite); - // close(socket->sd()); } catch (const sockerr& e) { signal_error().emit(e.serrno(), e.errstr()); } - //socket_mutex.unlock(); - Runnable::finish(); } -const string& Connection::get_host(void) const { +const string Connection::get_host(void) const { return host; } -const Connection::Port& Connection::get_port(void) const { +const Connection::Port Connection::get_port(void) const { return port; }