Way to detect if tcp port is open