mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
c3c388b6aa
does not compile
34 lines
508 B
C++
34 lines
508 B
C++
#ifndef LLARP_ESTABLISH_JOB_HPP
|
|
#define LLARP_ESTABLISH_JOB_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
|