Added functions tcp_port_is_open and wait_for_tcp_port.