facebook360_dep
Facebook360 Depth Estimation Pipeline
Public Member Functions | Public Attributes | List of all members
scripts.render.network.NetcatClient Class Reference

Public Member Functions

def __init__ (self, hostname, port)
 
def run (self, cmds)
 
def run_script (self, path)
 
def run_async (self, cmds)
 

Public Attributes

 hostname
 
 port
 

Detailed Description

A client for running commands synchronously over netcat.

Attributes:
    hostname (str): IP of the host running the netcat server.
    port (int): Port on which the netcat server is running.

Constructor & Destructor Documentation

◆ __init__()

def scripts.render.network.NetcatClient.__init__ (   self,
  hostname,
  port 
)
Establishes a client that can be used to execute commands over netcat.

Args:
    hostname (str): IP of the host running the netcat server.
    port (int): Port on which the netcat server is running.

Member Function Documentation

◆ run()

def scripts.render.network.NetcatClient.run (   self,
  cmds 
)
Synchronously runs a series of commands over netcat.

Args:
    cmds (list[str]): Series of commands to run. All commands will run regardless
of failures of any.

Returns:
    str: stdout from command execution.

◆ run_async()

def scripts.render.network.NetcatClient.run_async (   self,
  cmds 
)
Asynchronously runs a series of commands over netcat.

Args:
    cmds (list[str]): Series of commands to run. All commands will run regardless
of failures of any.

◆ run_script()

def scripts.render.network.NetcatClient.run_script (   self,
  path 
)

Member Data Documentation

◆ hostname

scripts.render.network.NetcatClient.hostname

◆ port

scripts.render.network.NetcatClient.port

The documentation for this class was generated from the following file: