Beispiel #1
0
 def _bye(self, s, fsm):
     print "Sending BYE"
     fsm.writeln("BYE")
     raise ServerExit
Beispiel #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 
Beispiel #3
0
 def _start(self, s, fsm):
     print "Sending HELLO"
     fsm.writeln("HELLO")