TcpPing(target,
        port,
        timeout=10,
        live_port_needed=False,
        source=None)
  
   | source code 
     | 
    
  
  Simple ping implementation using TCP connect(2). 
  Check if the given IP is reachable by doing attempting a TCP connect 
  to it. 
  
    - Parameters:
 
    
        target (str) - the IP or hostname to ping 
        port (int) - the port to connect to 
        timeout (int) - the timeout on the connection attempt 
        live_port_needed (boolean) - whether a closed port will cause the function to return failure, 
          as if there was a timeout 
        source (str or None) - if specified, will cause the connect to be made from this 
          specific source address; failures to bind other than 
          EADDRNOTAVAIL will be ignored 
      
   
 |