]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/src/connection.cpp
Se termina de poner prolijo Runnable:
[z.facultad/75.42/plaqui.git] / Server / src / connection.cpp
index 75915c96918ff34ab05e7ccd18d1d23c95eb2949..c355c86d0cf7e195627e69e5afd1c5a7870197e6 100644 (file)
@@ -74,19 +74,21 @@ Connection::Connection(const std::string& host, const Port& port):
 #endif // DEBUG
 }
 
-void Connection::finish(bool attach) {
+void Connection::finish(void) {
 #ifdef DEBUG
        cerr << __FILE__ << "(" << __LINE__ << ")"
-               << ": finish(attach = " << attach << ")." << endl;
+               << ": finish();" << endl;
 #endif // DEBUG
        //socket_mutex.lock();
        try {
                socket->shutdown(sockbuf::shut_readwrite);
+               // FIXME socket->close(sockbuf::shut_readwrite);
+               // close(socket->sd());
        } catch (const sockerr& e) {
-               error(e.serrno(), e.errstr());
+               signal_error().emit(e.serrno(), e.errstr());
        }
        //socket_mutex.unlock();
-       Runnable::finish(attach);
+       Runnable::finish();
 }
 
 const string& Connection::get_host(void) const {