rfm2  22.0
A python-based rewrite of RenderMan for Maya
 All Classes Namespaces Files Functions Variables Pages
rfm2.utils.chatserver Namespace Reference

Classes

class  CmdString
 
class  ItBaseHandler
 
class  CommandHandler
 

Variables

dictionary protocols
 
string s = 'dspyParams -proto {it} -user {j\nb} -foo bar -crop 0.0 1 0.0 1.0 -baz "James Brown"'
 
tuple cs = CmdString(s)
 
tuple cmd = cs.getCommand()
 
tuple proto = cs.getOpt('proto')
 
tuple user = cs.getOpt('user')
 
tuple foo = cs.getOpt('foo')
 
tuple crop = cs.getOpt('crop')
 
tuple baz = cs.getOpt('baz')
 
tuple server = SocketServer.TCPServer((host, port), CommandHandler)
 
tuple thread = threading.Thread(target=server.serve_forever)
 

Variable Documentation

tuple rfm2.utils.chatserver.baz = cs.getOpt('baz')
tuple rfm2.utils.chatserver.cmd = cs.getCommand()
tuple rfm2.utils.chatserver.crop = cs.getOpt('crop')
tuple rfm2.utils.chatserver.cs = CmdString(s)
tuple rfm2.utils.chatserver.foo = cs.getOpt('foo')
tuple rfm2.utils.chatserver.proto = cs.getOpt('proto')
dictionary rfm2.utils.chatserver.protocols
Initial value:
1 = {
2  'it': ItBaseHandler,
3 }
string rfm2.utils.chatserver.s = 'dspyParams -proto {it} -user {j\nb} -foo bar -crop 0.0 1 0.0 1.0 -baz "James Brown"'
tuple rfm2.utils.chatserver.server = SocketServer.TCPServer((host, port), CommandHandler)
tuple rfm2.utils.chatserver.thread = threading.Thread(target=server.serve_forever)
tuple rfm2.utils.chatserver.user = cs.getOpt('user')