Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Connectivity > age_gateway
add_tcp_rule/3
Description
add_tcp_rule/3 is an Erlang function exported by "age_gateway" module.
Simplified version of add_rule/5 to creates a new rule in the firewall table for TCP/IP client with default options set by ?GATEWAY_FIREWALL_RULES_DEFAULT.
References
•age_gateway
Parameters
Name
Type
Port
integer()
Port number
Constraints
list(age_firewall_rule())
Optional list with constraints.
Defaults to ?GATEWAY_FIREWALL_RULES_DEFAULT.
Services
list()
Optional list of services. Defaults to [].
Result
Value or Type
any()
On success returns the created firewall record.