#ifndef _INCLUDED_BOBCAT_GETHOSTENT_
#define _INCLUDED_BOBCAT_GETHOSTENT_

#include <string>
#include <bobcat/errno>

struct hostent;

namespace FBB
{
    class GetHostent
    {
        public:
            static hostent const *gethostent(char const *errorprefix, 
                                std::string const &nameOrAddress) 
                                                            throw(Errno);

            static std::string addressToString(char const *errorprefix, 
                                               void const *ads) throw(Errno);
        private:
            static Errno hosterror(char const *prefix);
    };
}

#endif

