X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finet.h;h=a65813bbd6af8698ed728fbd3dd2b998c685cc1c;hb=a81c41acd873cda7f40bca634782230d9e57dc4f;hp=f22d6a1a1d565d2be30adccf1a55ae2efb250ba6;hpb=2aab4004e71a2e5c773289e0be5e58aec6a8d339;p=libs%2Fnet.git diff --git a/source/inet.h b/source/inet.h index f22d6a1..a65813b 100644 --- a/source/inet.h +++ b/source/inet.h @@ -22,17 +22,17 @@ private: typedef u_short in_port_t; #endif - in_addr_t addr; - in_port_t port; + in_addr_t addr; + in_port_t port; public: InetAddr(); InetAddr(const sockaddr_in &); InetAddr(in_addr_t, in_port_t); - Family get_family() const { return INET; } - in_addr_t get_addr() const { return ntohl(addr); } - in_port_t get_port() const { return ntohs(port); } + Family get_family() const { return INET; } + in_addr_t get_addr() const { return ntohl(addr); } + in_port_t get_port() const { return ntohs(port); } std::string str() const; virtual unsigned fill_sockaddr(sockaddr &) const; virtual InetAddr *copy() const { return new InetAddr(*this); }