X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finet.h;h=a65813bbd6af8698ed728fbd3dd2b998c685cc1c;hb=c016a1ae2bc93a48074e4b8cafab70b9d2c9fc20;hp=be67dee56bd71db14c8fef146d6b487fa77c352c;hpb=1b2aabf076169e6d2049227188e464e95ac40514;p=libs%2Fnet.git diff --git a/source/inet.h b/source/inet.h index be67dee..a65813b 100644 --- a/source/inet.h +++ b/source/inet.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspnet -Copyright © 2008, 2011 Mikkosoft Productions, Mikko Rasa -Distributed under the LGPL -*/ - #ifndef MSP_NET_INET_H_ #define MSP_NET_INET_H_ @@ -29,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); }