Files

26 lines
613 B
C++
Raw Permalink Normal View History

2025-08-06 12:10:18 -04:00
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
2025-08-06 12:10:18 -04:00
* (c) ZeroTier, Inc.
* https://www.zerotier.com/
*/
#include "Path.hpp"
2025-07-03 11:26:23 -04:00
#include "Node.hpp"
2025-07-03 11:26:23 -04:00
#include "RuntimeEnvironment.hpp"
namespace ZeroTier {
2025-07-03 11:26:23 -04:00
bool Path::send(const RuntimeEnvironment* RR, void* tPtr, const void* data, unsigned int len, int64_t now)
{
2025-07-03 11:26:23 -04:00
if (RR->node->putPacket(tPtr, _localSocket, _addr, data, len)) {
_lastOut = now;
return true;
}
return false;
}
2025-07-03 11:26:23 -04:00
} // namespace ZeroTier