parameters: (port=11111)
return_statement: return connection
docstring: Use this function call to create a new session. On success,
      it returns a Session object that abstracts the connection.
      Otherwise, it returns None.
      In reverse connection mode, the client waits for a connection
      from the server (client has to be started first). The server
      then connects to the client (run pvserver with -rc and -ch
      option).
      The optional port specified the port to listen to.
docstring_summary: Use this function call to create a new session. On success,
      it returns a Session object that abstracts the connection.
      Otherwise, it returns None.
      In reverse connection mode, the client waits for a connection
      from the server (client has to be started first). The server
      then connects to the client (run pvserver with -rc and -ch
      option).
      The optional port specified the port to listen to.
docstring_tokens: Use this function call to create a new session . On success it returns a Session object that abstracts the connection . Otherwise it returns None . In reverse connection mode the client waits for a connection from the server ( client has to be started first ) . The server then connects to the client ( run pvserver with - rc and - ch option ) . The optional port specified the port to listen to .
function: def ReverseConnect(port=11111):
      """
      Use this function call to create a new session. On success,
      it returns a Session object that abstracts the connection.
      Otherwise, it returns None.
      In reverse connection mode, the client waits for a connection
      from the server (client has to be started first). The server
      then connects to the client (run pvserver with -rc and -ch
      option).
      The optional port specified the port to listen to.
      """
      session = vtkSMSessionClient()
      session.Connect("csrc://hostname:" + port)
      id = vtkProcessModule.GetProcessModule().RegisterSession(session)
      connection = GetConnectionFromId(id)
  
      # This shouldn't be needed. However, it's needed for old Python scripts that
      # directly import servermanager.py without simple.py
      SetActiveConnection(connection)
      return connection
function_tokens: def ReverseConnect ( port = 11111 ) : session = vtkSMSessionClient ( ) session . Connect ( "csrc://hostname:" + port ) id = vtkProcessModule . GetProcessModule ( ) . RegisterSession ( session ) connection = GetConnectionFromId ( id ) # This shouldn't be needed. However, it's needed for old Python scripts that # directly import servermanager.py without simple.py SetActiveConnection ( connection ) return connection