clang-format

This commit is contained in:
Adam Ierymenko 2025-07-03 11:26:23 -04:00
commit ba2a4a605c
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
140 changed files with 19214 additions and 17403 deletions

View file

@ -16,13 +16,13 @@
#ifndef ZT_PORTMAPPER_HPP
#define ZT_PORTMAPPER_HPP
#include <vector>
#include "../node/Constants.hpp"
#include "../node/InetAddress.hpp"
#include "../node/Mutex.hpp"
#include "Thread.hpp"
#include <vector>
/**
* How frequently should we refresh our UPNP/NAT-PnP/whatever state?
*/
@ -35,18 +35,17 @@ class PortMapperImpl;
/**
* UPnP/NAT-PnP port mapping "daemon"
*/
class PortMapper
{
class PortMapper {
friend class PortMapperImpl;
public:
public:
/**
* Create and start port mapper service
*
* @param localUdpPortToMap Port we want visible to the outside world
* @param name Unique name of this endpoint (based on ZeroTier address)
*/
PortMapper(int localUdpPortToMap,const char *uniqueName);
PortMapper(int localUdpPortToMap, const char* uniqueName);
~PortMapper();
@ -55,12 +54,12 @@ public:
*/
std::vector<InetAddress> get() const;
private:
PortMapperImpl *_impl;
private:
PortMapperImpl* _impl;
};
} // namespace ZeroTier
} // namespace ZeroTier
#endif
#endif // ZT_USE_MINIUPNPC
#endif // ZT_USE_MINIUPNPC