X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FINetAddressing.cc;h=3081cc59e34256f22c4206a98e991321409f9f39;hb=70256cc93f59f5d2c9b3428775a181e5e225bfc5;hp=b2e8edf85157721e432a6ff243653f40da5a8164;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Socket/INetAddressing.cc b/Socket/INetAddressing.cc index b2e8edf..3081cc5 100644 --- a/Socket/INetAddressing.cc +++ b/Socket/INetAddressing.cc @@ -26,7 +26,7 @@ //#include "INetAddressing.ih" // Custom includes -#include +#include #include #include #include @@ -35,16 +35,16 @@ #define prefix_ ///////////////////////////////cc.p//////////////////////////////////////// -prefix_ satcom::lib::INet4Address::INet4Address(std::string host, unsigned port) +prefix_ senf::INet4Address::INet4Address(std::string host, unsigned port) { clear(); - // TODO: gethostbyname einbauen + /** \todo gethostbyname support */ if (::inet_aton(host.c_str(), &addr_.sin_addr) == 0) throw InvalidINetAddressException(); addr_.sin_port = htons(port); } -prefix_ std::string satcom::lib::INet4Address::str() +prefix_ std::string senf::INet4Address::str() const { std::stringstream s; @@ -52,16 +52,16 @@ prefix_ std::string satcom::lib::INet4Address::str() return s.str(); } -prefix_ void satcom::lib::INet4Address::clear() +prefix_ void senf::INet4Address::clear() { ::memset(&addr_,0,sizeof(addr_)); addr_.sin_family = AF_INET; } -prefix_ void satcom::lib::INet4Address::assignString(std::string address) +prefix_ void senf::INet4Address::assignString(std::string address) { clear(); - // TODO: gethostbyname einbauen + /** \todo gethostbyname support */ unsigned i = address.find(':'); if (i == std::string::npos) throw InvalidINetAddressException(); @@ -83,5 +83,5 @@ prefix_ void satcom::lib::INet4Address::assignString(std::string address) // Local Variables: // mode: c++ -// c-file-style: "satcom" +// c-file-style: "senf" // End: