diff options
Diffstat (limited to 'src/Net/ClientConnection.cpp')
-rw-r--r-- | src/Net/ClientConnection.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Net/ClientConnection.cpp b/src/Net/ClientConnection.cpp index 31c1a08..0162a86 100644 --- a/src/Net/ClientConnection.cpp +++ b/src/Net/ClientConnection.cpp @@ -54,7 +54,7 @@ void ClientConnection::connectionHeader() { rawReceive(sizeof(ConnectionHeader), sigc::mem_fun(this, &ClientConnection::connectionHeaderReceiveHandler)); } -void ClientConnection::connect(const IPAddress &address, bool daemon0) throw(Common::Exception) { +void ClientConnection::connect(const IPAddress &address, bool daemon0) throw(Exception) { daemon = daemon0; if(isConnected()) @@ -63,7 +63,7 @@ void ClientConnection::connect(const IPAddress &address, bool daemon0) throw(Com sock = socket(PF_INET, SOCK_STREAM, 0); if(sock < 0) - throw Common::Exception("socket()", Common::Exception::INTERNAL_ERRNO, errno); + throw Exception("socket()", Exception::INTERNAL_ERRNO, errno); if(peer) delete peer; @@ -73,7 +73,7 @@ void ClientConnection::connect(const IPAddress &address, bool daemon0) throw(Com close(sock); delete peer; peer = 0; - throw Common::Exception("connect()", Common::Exception::INTERNAL_ERRNO, errno); + throw Exception("connect()", Exception::INTERNAL_ERRNO, errno); } // Set non-blocking flag @@ -82,7 +82,7 @@ void ClientConnection::connect(const IPAddress &address, bool daemon0) throw(Com if(flags < 0) { close(sock); - throw Common::Exception("fcntl()", Common::Exception::INTERNAL_ERRNO, errno); + throw Exception("fcntl()", Exception::INTERNAL_ERRNO, errno); } fcntl(sock, F_SETFL, flags | O_NONBLOCK); |