request = 0;
}
-void Client::connect_finished(int err)
+void Client::connect_finished(const exception *err)
{
if(err)
{
{
len = sock->read(rbuf, sizeof(rbuf));
}
- catch(const SystemError &e)
+ catch(const exception &e)
{
- signal_socket_error.emit(e.get_error_code());
+ signal_socket_error.emit(&e);
return;
}
{
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;
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();
};