mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
more
This commit is contained in:
parent
2f234ce16f
commit
41bb83aaba
@ -138,6 +138,41 @@ namespace llarp
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ILinkSession*
|
||||||
|
LinkLayer::NewOutboundSession(const RouterContact& rc,
|
||||||
|
const AddressInfo& ai)
|
||||||
|
{
|
||||||
|
(void)rc;
|
||||||
|
(void)ai;
|
||||||
|
// TODO: implement me
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
LinkLayer::SendFlowID(const Addr& to, const FlowID_t& flow)
|
||||||
|
{
|
||||||
|
// TODO: implement me
|
||||||
|
(void)to;
|
||||||
|
(void)flow;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
LinkLayer::ShouldSendFlowID(const Addr& to) const
|
||||||
|
{
|
||||||
|
(void)to;
|
||||||
|
// TODO: implement me
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
LinkLayer::SendReject(const Addr& to, const FlowID_t& flow, const char* msg)
|
||||||
|
{
|
||||||
|
// TODO: implement me
|
||||||
|
(void)to;
|
||||||
|
(void)flow;
|
||||||
|
(void)msg;
|
||||||
|
}
|
||||||
|
|
||||||
std::unique_ptr< ILinkLayer >
|
std::unique_ptr< ILinkLayer >
|
||||||
NewServerFromRouter(AbstractRouter* r)
|
NewServerFromRouter(AbstractRouter* r)
|
||||||
{
|
{
|
||||||
@ -158,8 +193,17 @@ namespace llarp
|
|||||||
SessionRenegotiateHandler reneg, SignBufferFunc sign,
|
SessionRenegotiateHandler reneg, SignBufferFunc sign,
|
||||||
TimeoutHandler t, SessionClosedHandler closed)
|
TimeoutHandler t, SessionClosedHandler closed)
|
||||||
{
|
{
|
||||||
return std::unique_ptr< ILinkLayer >(
|
(void)c;
|
||||||
new LinkLayer(c, enckey, getrc, h, est, reneg, sign, t, closed));
|
(void)enckey;
|
||||||
|
(void)getrc;
|
||||||
|
(void)h;
|
||||||
|
(void)est;
|
||||||
|
(void)reneg;
|
||||||
|
(void)sign;
|
||||||
|
(void)t;
|
||||||
|
(void)closed;
|
||||||
|
// TODO: implement me
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
} // namespace iwp
|
} // namespace iwp
|
||||||
} // namespace llarp
|
} // namespace llarp
|
||||||
|
@ -211,7 +211,7 @@ namespace llarp
|
|||||||
uint16_t m_OutboundPort = 0;
|
uint16_t m_OutboundPort = 0;
|
||||||
|
|
||||||
/// always maintain this many connections to other routers
|
/// always maintain this many connections to other routers
|
||||||
size_t minConnectedRouters = 1;
|
size_t minConnectedRouters = 3;
|
||||||
/// hard upperbound limit on the number of router to router connections
|
/// hard upperbound limit on the number of router to router connections
|
||||||
size_t maxConnectedRouters = 2000;
|
size_t maxConnectedRouters = 2000;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user