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
*/
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
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;
/**