| 102 | }; |
| 103 | |
| 104 | IP::IP(const cripts::string_view &type) : super_type(type) |
| 105 | { |
| 106 | if (type == "CLIENT") { |
| 107 | _type = Type::CLIENT; |
| 108 | } else if (type == "INBOUND") { |
| 109 | _type = Type::INBOUND; |
| 110 | } else if (type == "SERVER") { |
| 111 | _type = Type::SERVER; |
| 112 | } else if (type == "OUTBOUND") { |
| 113 | _type = Type::INBOUND; |
| 114 | } else { |
| 115 | CFatal("[Cripts::Headers] Unknown HRWBridge IP type: %s.", type.data()); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | cripts::string_view |
| 120 | IP::value(cripts::Context *context) |