This commit is contained in:
Jeff Becker 2019-02-19 08:32:26 -05:00
parent 2f234ce16f
commit 41bb83aaba
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
2 changed files with 47 additions and 3 deletions

View File

@ -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

View File

@ -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;