mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
separate class TransitTunnelBuildMsgHandler for tunnel build messages
This commit is contained in:
@@ -122,7 +122,7 @@ namespace tunnel
|
||||
}
|
||||
}
|
||||
|
||||
void HandleShortTransitTunnelBuildMsg (std::shared_ptr<I2NPMessage> msg)
|
||||
void TransitTunnelBuildMsgHandler::HandleShortTransitTunnelBuildMsg (std::shared_ptr<I2NPMessage>&& msg)
|
||||
{
|
||||
if (!msg) return;
|
||||
uint8_t * buf = msg->GetPayload();
|
||||
@@ -275,7 +275,7 @@ namespace tunnel
|
||||
}
|
||||
}
|
||||
|
||||
static bool HandleBuildRequestRecords (int num, uint8_t * records, uint8_t * clearText)
|
||||
bool TransitTunnelBuildMsgHandler::HandleBuildRequestRecords (int num, uint8_t * records, uint8_t * clearText)
|
||||
{
|
||||
for (int i = 0; i < num; i++)
|
||||
{
|
||||
@@ -362,7 +362,7 @@ namespace tunnel
|
||||
return false;
|
||||
}
|
||||
|
||||
void HandleVariableTransitTunnelBuildMsg (std::shared_ptr<I2NPMessage> msg)
|
||||
void TransitTunnelBuildMsgHandler::HandleVariableTransitTunnelBuildMsg (std::shared_ptr<I2NPMessage>&& msg)
|
||||
{
|
||||
if (!msg) return;
|
||||
uint8_t * buf = msg->GetPayload();
|
||||
|
||||
Reference in New Issue
Block a user