You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
613 B
25 lines
613 B
/* 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/. |
|
* |
|
* (c) ZeroTier, Inc. |
|
* https://www.zerotier.com/ |
|
*/ |
|
|
|
#include "Path.hpp" |
|
|
|
#include "Node.hpp" |
|
#include "RuntimeEnvironment.hpp" |
|
|
|
namespace ZeroTier { |
|
|
|
bool Path::send(const RuntimeEnvironment* RR, void* tPtr, const void* data, unsigned int len, int64_t now) |
|
{ |
|
if (RR->node->putPacket(tPtr, _localSocket, _addr, data, len)) { |
|
_lastOut = now; |
|
return true; |
|
} |
|
return false; |
|
} |
|
|
|
} // namespace ZeroTier
|
|
|