Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Member Functions | Public Attributes | List of all members
clarisse_net.ClarisseNet Class Reference

Remote connection handler. More...

Classes

class  Mode
 Internal class used as execution mode enum. More...
 
class  Status
 Internal class used as connection status enum. More...
 

Public Member Functions

def __init__
 Default constructor.
 
def connect
 Connect to the command port of a Clarisse/CNODE host.
 
def run
 Run the specified python script on a Clarisse/CNODE host.
 
def evaluate
 Evaluate the specified python statement on a Clarisse/CNODE host.
 
def close
 Close the connection to the command port.
 
def __del__
 Make sure the connection is properly closed.
 

Public Attributes

 status
 

Detailed Description

Remote connection handler.

By default, it will try to connect to localhost on port 55000

Constructor & Destructor Documentation

def clarisse_net.ClarisseNet.__init__ (   self,
  host = "localhost",
  port = 55000 
)

Default constructor.

By default, tries to connect to localhost:55000

Member Function Documentation

def clarisse_net.ClarisseNet.close (   self)

Close the connection to the command port.

def clarisse_net.ClarisseNet.connect (   self,
  host,
  port 
)

Connect to the command port of a Clarisse/CNODE host.

Parameters
hostThe name or the IP address of the remote Clarisse host.
portThe command port set on the remote Clarisse host.
def clarisse_net.ClarisseNet.evaluate (   self,
  statement 
)

Evaluate the specified python statement on a Clarisse/CNODE host.

Parameters
statementA block of python code (as string) to execute on the remote Clarisse host.
Returns
The result is returned as string.
def clarisse_net.ClarisseNet.run (   self,
  script 
)

Run the specified python script on a Clarisse/CNODE host.

Parameters
scriptA block of python code (as string) to execute on the remote Clarisse host.
Returns
The method doesn't return result.