5 #include <hilti/ast/builder/type.h> 6 #include <hilti/ast/operators/common.h> 7 #include <hilti/ast/types/port.h> 11 STANDARD_OPERATOR_2(port, Equal, type::Bool(), type::Port(), type::Port(),
"Compares two port values.")
12 STANDARD_OPERATOR_2(port, Unequal, type::Bool(), type::Port(), type::Port(), "Compares two port values.")
14 BEGIN_METHOD(port, Protocol)
15 const auto& signature()
const {
16 static auto _signature = Signature{.self = type::Port(),
17 .result = builder::typeByID(
"hilti::Protocol"),
21 Returns the protocol the port is using (such as UDP or TCP). Definition: operator-registry.h:15