You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/llarp/establish_job.hpp

36 lines
539 B
C++

#ifndef LLARP_ESTABLISH_JOB_HPP
#define LLARP_ESTABLISH_JOB_HPP
#include <router_contact.hpp>
namespace llarp
{
struct OutboundLinkEstablishJob
{
RouterContact rc;
OutboundLinkEstablishJob(const RouterContact& remote) : rc(remote)
{
}
virtual ~OutboundLinkEstablishJob(){};
virtual void
Success() = 0;
virtual void
Failed() = 0;
virtual void
AttemptTimedout() = 0;
virtual void
Attempt() = 0;
virtual bool
ShouldRetry() const = 0;
};
} // namespace llarp
#endif