X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsockaddr.cpp;h=08babb12c5f881c84a59471c06b178e4e2c173a1;hb=28e7bf7a13656620452e19d017ea5eedf14a8bc5;hp=26c77b643df8b4ae9b8180ddd1c38145f71dcc65;hpb=1b2aabf076169e6d2049227188e464e95ac40514;p=libs%2Fnet.git diff --git a/source/sockaddr.cpp b/source/sockaddr.cpp index 26c77b6..08babb1 100644 --- a/source/sockaddr.cpp +++ b/source/sockaddr.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspnet -Copyright © 2008, 2011 Mikkosoft Productions, Mikko Rasa -Distributed under the LGPL -*/ - #include #include "inet.h" #include "inet6.h" @@ -12,11 +5,6 @@ Distributed under the LGPL namespace Msp { namespace Net { -unsigned SockAddr::fill_sockaddr(sockaddr_storage &sa) const -{ - return fill_sockaddr(reinterpret_cast(sa)); -} - SockAddr *SockAddr::create(const sockaddr_storage &sa) { switch(sa.ss_family) @@ -30,5 +18,10 @@ SockAddr *SockAddr::create(const sockaddr_storage &sa) } } +unsigned SockAddr::fill_sockaddr(sockaddr_storage &sa) const +{ + return fill_sockaddr(reinterpret_cast(sa)); +} + } // namespace Net } // namespace Msp