1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
9 #ifndef anna_comm_functions_hpp
10 #define anna_comm_functions_hpp
14 #include <anna/app/functions.hpp>
25 functions - Methods and variables
27 struct functions : public anna::app::functions {
29 Returns the host name over which we are executing our process.
30 @return host name over which we are executing our process.
32 static std::string getHostName() throw(RuntimeException);
36 Resolves the host name provided with the first IP returned by the system.
37 Aliases and their addresses are traced as well as the official host name.
39 @param hostname Logical name for the server used to resolve (could be www.gopher.net i.e.).
41 @return First IP address returned by the system.
43 \see man gethostbyname.
45 static std::string resolveIP(const char* hostname) throw(RuntimeException);
48 Returns our application instance on anna.comm layer.
49 @return Reference to our application instance on anna.comm layer.
51 static comm::Application& getApp() throw(RuntimeException);