1#ifndef CPR_LOCAL_PORT_H
2#define CPR_LOCAL_PORT_H
3
4#include <cstdint>
5
6namespace cpr {
7
8class LocalPort {
9 public:
10 // NOLINTNEXTLINE(google-explicit-constructor)
11 LocalPort(const std::uint16_t p_localport) : localport_(p_localport) {}
12
13 operator std::uint16_t() const {
14 return localport_;
15 }
16
17 private:
18 std::uint16_t localport_ = 0;
19};
20
21} // namespace cpr
22
23#endif