Syntax
conncount([string])
Description
The conncount() function returns a hash current counts of connection types. The hash is keyed on connection type.
Connection Types
ESTABLISHED SYN_SENT SYN_RECV FIN_WAIT1 FIN_WAIT2 TIME_WAIT CLOSE CLOSE_WAIT LAST_ACK LISTEN CLOSING NEW_SYN_RECV
Example
include("net") println(conncount()) Count=conncount() println("There are ", Count["LISTEN"], " ports listening") {"LISTEN": 6, "ESTABLISHED": 16} There are 6 ports listening