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