#ifndef INCLUDED_BOBCAT_GETHOSTENT_
#define INCLUDED_BOBCAT_GETHOSTENT_

#include <string>

struct hostent;

namespace FBB
{

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

        static std::string addressToString(char const *errorprefix, 
                                           void const *ads);
    private:
        static void hosterror(char const *prefix);  // throws Exception()
};

} // FBB

#endif

