@Protocol()

New in 2.0

Generate network protocols

Network InformationSince 2.0.0

Parameters

NameTypeRequiredDefaultDescription
dictStringProtocol dictionary, default: FTP|TFTP|HTTP|SMTP|DHCP|Telnet|DNS|SNMP|DNS|TCP|UDP|ARP|DHCP|SIP|RTP|RLP|RAP|L2TP|PPTP|SNMP|TFTP

Usage

@Protocol()

Generate protocol using default dictionary

Example:
@Protocol()
Output:
SMTP
@Protocol(dict)

Generate protocol using specified dictionary

Example:
@Protocol(FTP|TFTP|HTTP)
Output:
HTTP
← Back to Function Reference