<s> """<STR_LIT>""" <EOL> import sys <EOL> from pycopia import clientserver <EOL> class TestUDPClient ( clientserver . UDPClient ) : <EOL> port = <NUM_LIT> <EOL> altport = <NUM_LIT> <EOL> def initialize ( self ) : <EOL> fsm = self . fsm <EOL> fsm . add_transition ( fsm . ANY , fsm . RESET , self . _greet , <NUM_LIT:1> ) <EOL> fsm . add_expression ( "<STR_LIT>" , <NUM_LIT:1> , None , <NUM_LIT:2> ) <EOL> fsm . add_transition ( "<STR_LIT>" , <NUM_LIT:2> , self . _bye , fsm . RESET ) <EOL> fsm . process ( fsm . ANY ) <EOL> def _greet ( self , s , fsm ) : <EOL> self . send ( "<STR_LIT>" ) <EOL> def _bye ( self , s , fsm ) : <EOL> self . send ( "<STR_LIT>" ) <EOL> raise ClientExit , <NUM_LIT:0> </s>
