bindings/python/ns3_module_internet_stack.py
changeset 3457 2ff6f05b9467
parent 3416 926ccb845111
child 3468 0bb5275704fc
equal deleted inserted replaced
3456:7f2d5300ad02 3457:2ff6f05b9467
     2 
     2 
     3 def register_types(module):
     3 def register_types(module):
     4     root_module = module.get_root()
     4     root_module = module.get_root()
     5     
     5     
     6     ## ipv4-interface.h: ns3::Ipv4Interface [class]
     6     ## ipv4-interface.h: ns3::Ipv4Interface [class]
     7     module.add_class('Ipv4Interface', allow_subclassing=True, parent=root_module['ns3::Object'])
     7     module.add_class('Ipv4Interface', parent=root_module['ns3::Object'])
     8     ## udp-header.h: ns3::UdpHeader [class]
     8     ## udp-header.h: ns3::UdpHeader [class]
     9     module.add_class('UdpHeader', allow_subclassing=True, parent=root_module['ns3::Header'])
     9     module.add_class('UdpHeader', parent=root_module['ns3::Header'])
    10     ## tcp-header.h: ns3::TcpHeader [class]
    10     ## tcp-header.h: ns3::TcpHeader [class]
    11     module.add_class('TcpHeader', allow_subclassing=True, parent=root_module['ns3::Header'])
    11     module.add_class('TcpHeader', parent=root_module['ns3::Header'])
    12     ## tcp-header.h: ns3::TcpHeader::Flags_t [enumeration]
    12     ## tcp-header.h: ns3::TcpHeader::Flags_t [enumeration]
    13     module.add_enum('Flags_t', ['NONE', 'FIN', 'SYN', 'RST', 'PSH', 'ACK', 'URG'], outer_class=root_module['ns3::TcpHeader'])
    13     module.add_enum('Flags_t', ['NONE', 'FIN', 'SYN', 'RST', 'PSH', 'ACK', 'URG'], outer_class=root_module['ns3::TcpHeader'])
    14     ## ipv4-static-routing.h: ns3::Ipv4StaticRouting [class]
    14     ## ipv4-static-routing.h: ns3::Ipv4StaticRouting [class]
    15     module.add_class('Ipv4StaticRouting', allow_subclassing=True, parent=root_module['ns3::Ipv4RoutingProtocol'])
    15     module.add_class('Ipv4StaticRouting', parent=root_module['ns3::Ipv4RoutingProtocol'])
    16     ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol [class]
    16     ## ipv4-l3-protocol.h: ns3::Ipv4L3Protocol [class]
    17     module.add_class('Ipv4L3Protocol', allow_subclassing=True, parent=root_module['ns3::Object'])
    17     module.add_class('Ipv4L3Protocol', parent=root_module['ns3::Object'])
    18     
    18     
    19     ## Register a nested module for the namespace internal
    19     ## Register a nested module for the namespace internal
    20     
    20     
    21     nested_module = module.add_cpp_namespace('internal')
    21     nested_module = module.add_cpp_namespace('internal')
    22     register_types_ns3_internal(nested_module)
    22     register_types_ns3_internal(nested_module)
   243     cls.add_method('SetNode', 'void', [param('ns3::Ptr< ns3::Node >', 'node')])
   243     cls.add_method('SetNode', 'void', [param('ns3::Ptr< ns3::Node >', 'node')])
   244     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::SetDefaultTtl(uint8_t ttl) [member function]
   244     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::SetDefaultTtl(uint8_t ttl) [member function]
   245     cls.add_method('SetDefaultTtl', 'void', [param('uint8_t', 'ttl')])
   245     cls.add_method('SetDefaultTtl', 'void', [param('uint8_t', 'ttl')])
   246     ## ipv4-l3-protocol.h: ns3::Ptr<ns3::Ipv4Interface> ns3::Ipv4L3Protocol::FindInterfaceForDevice(ns3::Ptr<const ns3::NetDevice> device) [member function]
   246     ## ipv4-l3-protocol.h: ns3::Ptr<ns3::Ipv4Interface> ns3::Ipv4L3Protocol::FindInterfaceForDevice(ns3::Ptr<const ns3::NetDevice> device) [member function]
   247     cls.add_method('FindInterfaceForDevice', 'ns3::Ptr< ns3::Ipv4Interface >', [param('ns3::Ptr< const ns3::NetDevice >', 'device')])
   247     cls.add_method('FindInterfaceForDevice', 'ns3::Ptr< ns3::Ipv4Interface >', [param('ns3::Ptr< const ns3::NetDevice >', 'device')])
   248     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::Receive(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::Packet> p, uint16_t protocol, ns3::Address const & from) [member function]
   248     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::Receive(ns3::Ptr<ns3::NetDevice> device, ns3::Ptr<ns3::Packet> p, uint16_t protocol, ns3::Address const & from, ns3::Address const & to, ns3::NetDevice::PacketType packetType) [member function]
   249     cls.add_method('Receive', 'void', [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::Packet >', 'p'), param('uint16_t', 'protocol'), param('ns3::Address&', 'from', is_const=True)])
   249     cls.add_method('Receive', 'void', [param('ns3::Ptr< ns3::NetDevice >', 'device'), param('ns3::Ptr< ns3::Packet >', 'p'), param('uint16_t', 'protocol'), param('ns3::Address&', 'from', is_const=True), param('ns3::Address&', 'to', is_const=True), param('ns3::NetDevice::PacketType', 'packetType')])
   250     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::Send(ns3::Ptr<ns3::Packet> packet, ns3::Ipv4Address source, ns3::Ipv4Address destination, uint8_t protocol) [member function]
   250     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::Send(ns3::Ptr<ns3::Packet> packet, ns3::Ipv4Address source, ns3::Ipv4Address destination, uint8_t protocol) [member function]
   251     cls.add_method('Send', 'void', [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'destination'), param('uint8_t', 'protocol')])
   251     cls.add_method('Send', 'void', [param('ns3::Ptr< ns3::Packet >', 'packet'), param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'destination'), param('uint8_t', 'protocol')])
   252     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::AddHostRouteTo(ns3::Ipv4Address dest, ns3::Ipv4Address nextHop, uint32_t interface) [member function]
   252     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::AddHostRouteTo(ns3::Ipv4Address dest, ns3::Ipv4Address nextHop, uint32_t interface) [member function]
   253     cls.add_method('AddHostRouteTo', 'void', [param('ns3::Ipv4Address', 'dest'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')])
   253     cls.add_method('AddHostRouteTo', 'void', [param('ns3::Ipv4Address', 'dest'), param('ns3::Ipv4Address', 'nextHop'), param('uint32_t', 'interface')])
   254     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::AddHostRouteTo(ns3::Ipv4Address dest, uint32_t interface) [member function]
   254     ## ipv4-l3-protocol.h: void ns3::Ipv4L3Protocol::AddHostRouteTo(ns3::Ipv4Address dest, uint32_t interface) [member function]