# File lib/nmap/parser.rb, line 615 def tcp_state(portnum) port = tcp_port(portnum) return nil if port.nil? port.state end