//////////////////////////////////////////////////////////////////////// Bridge for the IP class
| 82 | ///////////////////////////////////////////////////////////////////////////// |
| 83 | // Bridge for the IP class |
| 84 | class IP : public detail::HRWBridge |
| 85 | { |
| 86 | using self_type = IP; |
| 87 | using super_type = detail::HRWBridge; |
| 88 | |
| 89 | enum class Type : uint8_t { none, CLIENT, INBOUND, SERVER, OUTBOUND }; |
| 90 | |
| 91 | public: |
| 92 | IP(const self_type &) = delete; |
| 93 | void operator=(const self_type &) = delete; |
| 94 | |
| 95 | IP(const cripts::string_view &ip); |
| 96 | ~IP() override = default; |
| 97 | |
| 98 | cripts::string_view value(cripts::Context *context) override; |
| 99 | |
| 100 | private: |
| 101 | Type _type = Type::none; |
| 102 | }; |
| 103 | |
| 104 | IP::IP(const cripts::string_view &type) : super_type(type) |
| 105 | { |
no outgoing calls