]> git.tdb.fi Git - libs/net.git/blobdiff - source/client.h
Exception changes
[libs/net.git] / source / client.h
index 8c084cec49e45dd655fa895b00573e2fd8bf205b..ee10f8c1cb5a0e389d860c6b9c59ee6a45aeb9a4 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmsphttp
-Copyright © 2008  Mikkosoft Productions, Mikko Rasa
-Distributed under the LGPL
-*/
-
 #ifndef MSP_HTTP_CLIENT_H_
 #define MSP_HTTP_CLIENT_H_
 
@@ -23,7 +16,7 @@ class Client
 {
 public:
        sigc::signal<void, const Response &> signal_response_complete;
-       sigc::signal<void, int> signal_socket_error;
+       sigc::signal<void, const std::exception *> signal_socket_error;
 
 private:
        Net::StreamSocket *sock;
@@ -49,7 +42,7 @@ public:
        const Request *get_request() const { return request; }
        const Response *get_response() const { return response; }
 private:
-       void connect_finished(int);
+       void connect_finished(const std::exception *);
        void data_available();
 };