bindings/python/ns3_module_udp_echo.py
changeset 3972 a84f2ab246e6
parent 3951 561a37800333
child 4218 debf1a8a96d3
equal deleted inserted replaced
3971:d97b4527ec9b 3972:a84f2ab246e6
    52     register_Ns3UdpEchoClient_methods(root_module, root_module['ns3::UdpEchoClient'])
    52     register_Ns3UdpEchoClient_methods(root_module, root_module['ns3::UdpEchoClient'])
    53     register_Ns3UdpEchoServer_methods(root_module, root_module['ns3::UdpEchoServer'])
    53     register_Ns3UdpEchoServer_methods(root_module, root_module['ns3::UdpEchoServer'])
    54     return
    54     return
    55 
    55 
    56 def register_Ns3UdpEchoClient_methods(root_module, cls):
    56 def register_Ns3UdpEchoClient_methods(root_module, cls):
       
    57     ## udp-echo-client.h: ns3::UdpEchoClient::UdpEchoClient(ns3::UdpEchoClient const & arg0) [copy constructor]
       
    58     cls.add_constructor([param('ns3::UdpEchoClient const &', 'arg0')])
    57     ## udp-echo-client.h: static ns3::TypeId ns3::UdpEchoClient::GetTypeId() [member function]
    59     ## udp-echo-client.h: static ns3::TypeId ns3::UdpEchoClient::GetTypeId() [member function]
    58     cls.add_method('GetTypeId', 
    60     cls.add_method('GetTypeId', 
    59                    'ns3::TypeId', 
    61                    'ns3::TypeId', 
    60                    [], 
    62                    [], 
    61                    is_static=True)
    63                    is_static=True)
    78     ## udp-echo-client.h: void ns3::UdpEchoClient::StopApplication() [member function]
    80     ## udp-echo-client.h: void ns3::UdpEchoClient::StopApplication() [member function]
    79     cls.add_method('StopApplication', 
    81     cls.add_method('StopApplication', 
    80                    'void', 
    82                    'void', 
    81                    [], 
    83                    [], 
    82                    visibility='private', is_virtual=True)
    84                    visibility='private', is_virtual=True)
    83     cls.add_copy_constructor()
       
    84     return
    85     return
    85 
    86 
    86 def register_Ns3UdpEchoServer_methods(root_module, cls):
    87 def register_Ns3UdpEchoServer_methods(root_module, cls):
       
    88     ## udp-echo-server.h: ns3::UdpEchoServer::UdpEchoServer(ns3::UdpEchoServer const & arg0) [copy constructor]
       
    89     cls.add_constructor([param('ns3::UdpEchoServer const &', 'arg0')])
    87     ## udp-echo-server.h: static ns3::TypeId ns3::UdpEchoServer::GetTypeId() [member function]
    90     ## udp-echo-server.h: static ns3::TypeId ns3::UdpEchoServer::GetTypeId() [member function]
    88     cls.add_method('GetTypeId', 
    91     cls.add_method('GetTypeId', 
    89                    'ns3::TypeId', 
    92                    'ns3::TypeId', 
    90                    [], 
    93                    [], 
    91                    is_static=True)
    94                    is_static=True)
   104     ## udp-echo-server.h: void ns3::UdpEchoServer::StopApplication() [member function]
   107     ## udp-echo-server.h: void ns3::UdpEchoServer::StopApplication() [member function]
   105     cls.add_method('StopApplication', 
   108     cls.add_method('StopApplication', 
   106                    'void', 
   109                    'void', 
   107                    [], 
   110                    [], 
   108                    visibility='private', is_virtual=True)
   111                    visibility='private', is_virtual=True)
   109     cls.add_copy_constructor()
       
   110     return
   112     return
   111 
   113 
   112 def register_functions(root_module):
   114 def register_functions(root_module):
   113     module = root_module
   115     module = root_module
   114     register_functions_ns3_Config(module.get_submodule('Config'), root_module)
   116     register_functions_ns3_Config(module.get_submodule('Config'), root_module)