mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
46 lines
1.2 KiB
C++
46 lines
1.2 KiB
C++
#ifndef LLARP_SERVICE_ENDPOINT_UTIL_HPP
|
|
#define LLARP_SERVICE_ENDPOINT_UTIL_HPP
|
|
|
|
#include <service/endpoint.hpp>
|
|
|
|
namespace llarp
|
|
{
|
|
namespace service
|
|
{
|
|
struct EndpointUtil
|
|
{
|
|
static void
|
|
ExpireSNodeSessions(llarp_time_t now, Endpoint::SNodeSessions& sessions);
|
|
|
|
static void
|
|
ExpirePendingTx(llarp_time_t now, Endpoint::PendingLookups& lookups);
|
|
|
|
static void
|
|
ExpirePendingRouterLookups(llarp_time_t now,
|
|
Endpoint::PendingRouters& routers);
|
|
|
|
static void
|
|
DeregisterDeadSessions(llarp_time_t now, Endpoint::Sessions& sessions);
|
|
|
|
static void
|
|
TickRemoteSessions(llarp_time_t now, Endpoint::Sessions& remoteSessions,
|
|
Endpoint::Sessions& deadSessions);
|
|
|
|
static void
|
|
ExpireConvoSessions(llarp_time_t now, Endpoint::ConvoMap& sessions);
|
|
|
|
static void
|
|
StopRemoteSessions(Endpoint::Sessions& remoteSessions);
|
|
|
|
static void
|
|
StopSnodeSessions(Endpoint::SNodeSessions& sessions);
|
|
|
|
static bool
|
|
HasPathToService(const Address& addr,
|
|
const Endpoint::Sessions& remoteSessions);
|
|
};
|
|
} // namespace service
|
|
|
|
} // namespace llarp
|
|
|
|
#endif
|