Changeset 4


Ignore:
Timestamp:
11/16/08 05:21:14 PM (11 years ago)
Author:
wiedi
Message:

register functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/gepd

    r2 r4  
    2323 
    2424def main(): 
     25        gep = Gepd() 
    2526        server = SimpleXMLRPCServer.SimpleXMLRPCServer(("localhost", 42424)) 
    2627        server.register_introspection_functions() 
    27         server.register_instance(Gepd()) 
     28        server.register_function(gep.get_packet_list, 'get_packet_list') 
     29        server.register_function(gep.start_update, 'start_update') 
     30        server.register_function(gep.kill_update, 'kill_update') 
     31        server.register_function(gep.get_update_status, 'get_update_status') 
     32        server.register_instance() 
    2833        server.serve_forever() 
    2934 
Note: See TracChangeset for help on using the changeset viewer.