<s> __author__ = '<STR_LIT>' <EOL> from aktos_dcs import * <EOL> class TestHandler ( TcpHandlerActor ) : <EOL> def prepare ( self ) : <EOL> self . io_prompt = IoPrompt ( ) <EOL> self . io_prompt . send_cmd = lambda x : self . socket_write ( x + "<STR_LIT:\n>" ) <EOL> self . io_prompt . start_io_prompt ( ) <EOL> def on_connect ( self ) : <EOL> print "<STR_LIT>" , self . client_id <EOL> def socket_read ( self , data ) : <EOL> self . io_prompt . prompt_read ( data ) <EOL> PORT = <NUM_LIT> <EOL> print "<STR_LIT>" % PORT <EOL> TcpServerActor ( address = '<STR_LIT>' , port = PORT , handler = TestHandler ) <EOL> wait_all ( ) </s>
