llarp::service::IDataHandler

Inherited by llarp::service::Endpoint

Public Functions

Name
virtual bool HandleDataMessage(path::Path_ptr path, const PathID_t from, std::shared_ptr< ProtocolMessage > msg) =0
virtual bool GetCachedSessionKeyFor(const ConvoTag & remote, SharedSecret & secret) const =0
virtual void PutCachedSessionKeyFor(const ConvoTag & remote, const SharedSecret & secret) =0
virtual void ConvoTagTX(const ConvoTag & tag) =0
called when we send data to remote on a convotag
virtual void ConvoTagRX(const ConvoTag & tag) =0
called when we got data from remote on a convotag
virtual void RemoveConvoTag(const ConvoTag & remote) =0
virtual bool HasConvoTag(const ConvoTag & remote) const =0
virtual void PutSenderFor(const ConvoTag & remote, const ServiceInfo & si, bool inbound) =0
virtual bool GetSenderFor(const ConvoTag & remote, ServiceInfo & si) const =0
virtual void PutIntroFor(const ConvoTag & remote, const Introduction & intro) =0
virtual bool GetIntroFor(const ConvoTag & remote, Introduction & intro) const =0
virtual void PutReplyIntroFor(const ConvoTag & remote, const Introduction & intro) =0
virtual bool GetReplyIntroFor(const ConvoTag & remote, Introduction & intro) const =0
virtual bool GetConvoTagsForService(const Address & si, std::set< ConvoTag > & tag) const =0
virtual bool HasInboundConvo(const Address & addr) const =0
virtual bool HasOutboundConvo(const Address & addr) const =0
virtual bool WantsOutboundSession(const Address & addr) const =0
do we want a session outbound to addr
virtual void QueueRecvData(RecvDataEvent ev) =0

Public Functions Documentation

function HandleDataMessage

virtual bool HandleDataMessage(
    path::Path_ptr path,
    const PathID_t from,
    std::shared_ptr< ProtocolMessage > msg
) =0

Reimplemented by: llarp::service::Endpoint::HandleDataMessage

function GetCachedSessionKeyFor

virtual bool GetCachedSessionKeyFor(
    const ConvoTag & remote,
    SharedSecret & secret
) const =0

Reimplemented by: llarp::service::Endpoint::GetCachedSessionKeyFor

function PutCachedSessionKeyFor

virtual void PutCachedSessionKeyFor(
    const ConvoTag & remote,
    const SharedSecret & secret
) =0

Reimplemented by: llarp::service::Endpoint::PutCachedSessionKeyFor

function ConvoTagTX

virtual void ConvoTagTX(
    const ConvoTag & tag
) =0

called when we send data to remote on a convotag

Reimplemented by: llarp::service::Endpoint::ConvoTagTX

function ConvoTagRX

virtual void ConvoTagRX(
    const ConvoTag & tag
) =0

called when we got data from remote on a convotag

Reimplemented by: llarp::service::Endpoint::ConvoTagRX

function RemoveConvoTag

virtual void RemoveConvoTag(
    const ConvoTag & remote
) =0

Reimplemented by: llarp::service::Endpoint::RemoveConvoTag

function HasConvoTag

virtual bool HasConvoTag(
    const ConvoTag & remote
) const =0

Reimplemented by: llarp::service::Endpoint::HasConvoTag

function PutSenderFor

virtual void PutSenderFor(
    const ConvoTag & remote,
    const ServiceInfo & si,
    bool inbound
) =0

Reimplemented by: llarp::service::Endpoint::PutSenderFor

function GetSenderFor

virtual bool GetSenderFor(
    const ConvoTag & remote,
    ServiceInfo & si
) const =0

Reimplemented by: llarp::service::Endpoint::GetSenderFor

function PutIntroFor

virtual void PutIntroFor(
    const ConvoTag & remote,
    const Introduction & intro
) =0

Reimplemented by: llarp::service::Endpoint::PutIntroFor

function GetIntroFor

virtual bool GetIntroFor(
    const ConvoTag & remote,
    Introduction & intro
) const =0

Reimplemented by: llarp::service::Endpoint::GetIntroFor

function PutReplyIntroFor

virtual void PutReplyIntroFor(
    const ConvoTag & remote,
    const Introduction & intro
) =0

Reimplemented by: llarp::service::Endpoint::PutReplyIntroFor

function GetReplyIntroFor

virtual bool GetReplyIntroFor(
    const ConvoTag & remote,
    Introduction & intro
) const =0

Reimplemented by: llarp::service::Endpoint::GetReplyIntroFor

function GetConvoTagsForService

virtual bool GetConvoTagsForService(
    const Address & si,
    std::set< ConvoTag > & tag
) const =0

Reimplemented by: llarp::service::Endpoint::GetConvoTagsForService

function HasInboundConvo

virtual bool HasInboundConvo(
    const Address & addr
) const =0

Reimplemented by: llarp::service::Endpoint::HasInboundConvo

function HasOutboundConvo

virtual bool HasOutboundConvo(
    const Address & addr
) const =0

Reimplemented by: llarp::service::Endpoint::HasOutboundConvo

function WantsOutboundSession

virtual bool WantsOutboundSession(
    const Address & addr
) const =0

do we want a session outbound to addr

Reimplemented by: llarp::service::Endpoint::WantsOutboundSession

function QueueRecvData

virtual void QueueRecvData(
    RecvDataEvent ev
) =0

Reimplemented by: llarp::service::Endpoint::QueueRecvData


Updated on 2026-01-10 at 22:49:45 +0000