sigc::signal<void, const std::exception *> signal_connect_finished;
protected:
- bool connecting;
- bool connected;
- SockAddr *peer_addr;
+ bool connecting = false;
+ bool connected = false;
+ SockAddr *peer_addr = nullptr;
ClientSocket(const Private &, const SockAddr &);
ClientSocket(Family, int, int);
bool is_connecting() const { return connecting; }
bool is_connected() const { return connected; }
+ void shutdown(IO::Mode);
+
const SockAddr &get_peer_address() const;
protected:
- virtual unsigned do_write(const char *, unsigned);
- virtual unsigned do_read(char *, unsigned);
+ std::size_t do_write(const char *, std::size_t) override;
+ std::size_t do_read(char *, std::size_t) override;
};
} // namespace Net