class InetAddr: public SockAddr
{
private:
- unsigned char addr[4];
- unsigned port;
+ unsigned char addr[4] = { };
+ unsigned port = 0;
public:
- InetAddr();
+ InetAddr() = default;
InetAddr(const SysAddr &);
- virtual InetAddr *copy() const { return new InetAddr(*this); }
+ InetAddr *copy() const override { return new InetAddr(*this); }
- virtual SysAddr to_sys() const;
+ SysAddr to_sys() const override;
- virtual Family get_family() const { return INET; }
+ Family get_family() const override { return INET; }
unsigned get_port() const { return port; }
- virtual std::string str() const;
+ std::string str() const override;
};
} // namespace Net