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