Package vmd :: Module control :: Class interactive
[hide private]
[frames] | no frames]

Class interactive

source code

asyncore.dispatcher --+        
                      |        
    asynchat.async_chat --+    
                          |    
                     client --+
                              |
                             interactive

Interactive remote session with vmd:

interactive(host)
asyncore.loop()

When the loop() is called the interactive session starts and the prompt is displayed as python->vmd>. You are now connected to the tcl interpreter in vmd. End the session by issuing the command close or EXIT.

Commands interpreted by the remote server and not by tcl in vmd:

command description
close close the current connection (socket)
exit exit the server (no more connections possible, but current connections are still open)
loglevel N set LOGLEVEL to value N (0<=N<=2) [default: 1]
EXIT exit the interactive session
Instance Methods [hide private]
 
__init__(self, host, port=5555) source code
 
handle_connect(self) source code
 
found_terminator(self) source code
 
cmd(self, *commands)
Submits the commands to be executed in VMD:
source code
 
getinput(self) source code

Inherited from client: collect_incoming_data, response

Inherited from asynchat.async_chat: close_when_done, discard_buffers, get_terminator, handle_close, handle_read, handle_write, initiate_send, push, push_with_producer, readable, refill_buffer, set_terminator, writable

Inherited from asyncore.dispatcher: __getattr__, __repr__, accept, add_channel, bind, close, connect, create_socket, del_channel, handle_accept, handle_error, handle_expt, handle_expt_event, handle_read_event, handle_write_event, listen, log, log_info, recv, send, set_reuse_addr, set_socket

Class Variables [hide private]

Inherited from asynchat.async_chat: ac_in_buffer_size, ac_out_buffer_size

Inherited from asyncore.dispatcher: accepting, addr, closing, connected, debug

Method Details [hide private]

__init__(self, host, port=5555)
(Constructor)

source code 
Parameters:
  • host - currently remote_ctl.tcl only allows 'localhost'
Overrides: asyncore.dispatcher.__init__

handle_connect(self)

source code 
Overrides: asyncore.dispatcher.handle_connect

found_terminator(self)

source code 
Overrides: asynchat.async_chat.found_terminator

cmd(self, *commands)

source code 

Submits the commands to be executed in VMD:

c.cmd(tcl, tcl, ...)

Commands (with embedded newlines!) scheduled for sending and execution in VMD. All strings will be executed sequentially.

Overrides: client.cmd
(inherited documentation)