From fe2d6a1962c0db72e68f291eea8469e05f50361e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Thu, 7 Oct 2004 13:05:55 +0000 Subject: [PATCH] pullup of INFN CVS changes -- mainly notifications --- .../interface/Notification.h | 28 +++++++++++++++++----- org.glite.lb.client-interface/interface/context.h | 1 + .../project/version.properties | 2 +- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/org.glite.lb.client-interface/interface/Notification.h b/org.glite.lb.client-interface/interface/Notification.h index 0e0b04a..b8e8b27 100644 --- a/org.glite.lb.client-interface/interface/Notification.h +++ b/org.glite.lb.client-interface/interface/Notification.h @@ -18,19 +18,29 @@ EWL_BEGIN_NAMESPACE; class Notification { public: + /** Create an empty object + * to be used for new notifications, i.e. with Register() + */ Notification(); - /** Create from NotifId */ - Notification(const std::string); - - /** Create from server,port pair */ + /** Create from server,port pair + * to be used for new notifications, i.e. with Register() + * \param host + * \param port + */ Notification(const std::string,const u_int16_t); + /** Create from NotifId + * to be used for existing notifications, i.e. with Bind() + * \param notifId + */ + Notification(const std::string); + ~Notification(); std::string getNotifId() const; /**< retrieve NotifId */ - time_t getValid() const; /**< until when it is valid */ - int getFd() const; /**< local listener filedescriptor */ + time_t getValid() const; /**< retrieve time until when it is valid */ + int getFd() const; /**< retrieve local listener filedescriptor */ /** Add this job to the list. * Local operation only, Register() has to be called @@ -55,6 +65,12 @@ public: */ void Register(); + /** Bind to the existing notification at the server + * i.e. change the receiving local address + * \param address_override + */ + void Bind(const std::string); + /** Receive notification. * Blocks at most the specified timeout (maybe 0 for local polling). * \retval 0 OK diff --git a/org.glite.lb.client-interface/interface/context.h b/org.glite.lb.client-interface/interface/context.h index 4ac899a..20bf587 100644 --- a/org.glite.lb.client-interface/interface/context.h +++ b/org.glite.lb.client-interface/interface/context.h @@ -146,6 +146,7 @@ typedef enum _edg_wll_ErrorCode { EDG_WLL_IL_PROTO, /**< Interlogger to lbserver communication protocol error. */ EDG_WLL_IL_SYS, /**< Interlogger internal error. */ EDG_WLL_IL_EVENTS_WAITING, /**< Interlogger still has events pending delivery. */ + EDG_WLL_ERROR_DNS, /**< DNS resolver error. See errDesc returned by edg_wll_Error(). */ } edg_wll_ErrorCode; /** diff --git a/org.glite.lb.client-interface/project/version.properties b/org.glite.lb.client-interface/project/version.properties index 7d649c4..05c8a2e 100644 --- a/org.glite.lb.client-interface/project/version.properties +++ b/org.glite.lb.client-interface/project/version.properties @@ -1,4 +1,4 @@ #Thu Oct 07 13:51:14 CEST 2004 -module.version=0.1.0 +module.version=0.2.0 module.build=36 module.age=0 -- 1.8.2.3