示例#1
0
 def _bye(self, s, fsm):
     print "Sending BYE"
     fsm.writeln("BYE")
     raise ServerExit
示例#2
0
 def _greet(self, s, fsm):
     print "Sending GREETINGS"
     fsm.writeln("GREETINGS")
     print "Sending BYE"
     fsm.writeln("BYE") # cheat here just to keep things moving 
示例#3
0
 def _start(self, s, fsm):
     print "Sending HELLO"
     fsm.writeln("HELLO")