Mature scanners such as Nmap separate port state, service name, service/version evidence, and output formats. The scanner follows the same idea at a learning-project level: it does not only say "port ...