bindings/python/ns3_module_internet_stack.py
changeset 3416 926ccb845111
parent 3408 2cc40b3e4fa5
child 3457 2ff6f05b9467
equal deleted inserted replaced
3415:5dd595cb7eba 3416:926ccb845111
   114     cls.add_method('SetSourcePort', 'void', [param('uint16_t', 'port')])
   114     cls.add_method('SetSourcePort', 'void', [param('uint16_t', 'port')])
   115     ## udp-header.h: uint16_t ns3::UdpHeader::GetSourcePort() const [member function]
   115     ## udp-header.h: uint16_t ns3::UdpHeader::GetSourcePort() const [member function]
   116     cls.add_method('GetSourcePort', 'uint16_t', [], is_const=True)
   116     cls.add_method('GetSourcePort', 'uint16_t', [], is_const=True)
   117     ## udp-header.h: uint16_t ns3::UdpHeader::GetDestinationPort() const [member function]
   117     ## udp-header.h: uint16_t ns3::UdpHeader::GetDestinationPort() const [member function]
   118     cls.add_method('GetDestinationPort', 'uint16_t', [], is_const=True)
   118     cls.add_method('GetDestinationPort', 'uint16_t', [], is_const=True)
   119     ## udp-header.h: void ns3::UdpHeader::SetPayloadSize(uint16_t size) [member function]
       
   120     cls.add_method('SetPayloadSize', 'void', [param('uint16_t', 'size')])
       
   121     ## udp-header.h: void ns3::UdpHeader::InitializeChecksum(ns3::Ipv4Address source, ns3::Ipv4Address destination, uint8_t protocol) [member function]
   119     ## udp-header.h: void ns3::UdpHeader::InitializeChecksum(ns3::Ipv4Address source, ns3::Ipv4Address destination, uint8_t protocol) [member function]
   122     cls.add_method('InitializeChecksum', 'void', [param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'destination'), param('uint8_t', 'protocol')])
   120     cls.add_method('InitializeChecksum', 'void', [param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'destination'), param('uint8_t', 'protocol')])
   123     ## udp-header.h: static ns3::TypeId ns3::UdpHeader::GetTypeId() [member function]
   121     ## udp-header.h: static ns3::TypeId ns3::UdpHeader::GetTypeId() [member function]
   124     cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
   122     cls.add_method('GetTypeId', 'ns3::TypeId', [], is_static=True)
   125     ## udp-header.h: ns3::TypeId ns3::UdpHeader::GetInstanceTypeId() const [member function]
   123     ## udp-header.h: ns3::TypeId ns3::UdpHeader::GetInstanceTypeId() const [member function]
   153     cls.add_method('SetLength', 'void', [param('uint8_t', 'length')])
   151     cls.add_method('SetLength', 'void', [param('uint8_t', 'length')])
   154     ## tcp-header.h: void ns3::TcpHeader::SetFlags(uint8_t flags) [member function]
   152     ## tcp-header.h: void ns3::TcpHeader::SetFlags(uint8_t flags) [member function]
   155     cls.add_method('SetFlags', 'void', [param('uint8_t', 'flags')])
   153     cls.add_method('SetFlags', 'void', [param('uint8_t', 'flags')])
   156     ## tcp-header.h: void ns3::TcpHeader::SetWindowSize(uint16_t windowSize) [member function]
   154     ## tcp-header.h: void ns3::TcpHeader::SetWindowSize(uint16_t windowSize) [member function]
   157     cls.add_method('SetWindowSize', 'void', [param('uint16_t', 'windowSize')])
   155     cls.add_method('SetWindowSize', 'void', [param('uint16_t', 'windowSize')])
   158     ## tcp-header.h: void ns3::TcpHeader::SetChecksum(uint16_t checksum) [member function]
       
   159     cls.add_method('SetChecksum', 'void', [param('uint16_t', 'checksum')])
       
   160     ## tcp-header.h: void ns3::TcpHeader::SetUrgentPointer(uint16_t urgentPointer) [member function]
   156     ## tcp-header.h: void ns3::TcpHeader::SetUrgentPointer(uint16_t urgentPointer) [member function]
   161     cls.add_method('SetUrgentPointer', 'void', [param('uint16_t', 'urgentPointer')])
   157     cls.add_method('SetUrgentPointer', 'void', [param('uint16_t', 'urgentPointer')])
   162     ## tcp-header.h: uint16_t ns3::TcpHeader::GetSourcePort() const [member function]
   158     ## tcp-header.h: uint16_t ns3::TcpHeader::GetSourcePort() const [member function]
   163     cls.add_method('GetSourcePort', 'uint16_t', [], is_const=True)
   159     cls.add_method('GetSourcePort', 'uint16_t', [], is_const=True)
   164     ## tcp-header.h: uint16_t ns3::TcpHeader::GetDestinationPort() const [member function]
   160     ## tcp-header.h: uint16_t ns3::TcpHeader::GetDestinationPort() const [member function]
   171     cls.add_method('GetLength', 'uint8_t', [], is_const=True)
   167     cls.add_method('GetLength', 'uint8_t', [], is_const=True)
   172     ## tcp-header.h: uint8_t ns3::TcpHeader::GetFlags() const [member function]
   168     ## tcp-header.h: uint8_t ns3::TcpHeader::GetFlags() const [member function]
   173     cls.add_method('GetFlags', 'uint8_t', [], is_const=True)
   169     cls.add_method('GetFlags', 'uint8_t', [], is_const=True)
   174     ## tcp-header.h: uint16_t ns3::TcpHeader::GetWindowSize() const [member function]
   170     ## tcp-header.h: uint16_t ns3::TcpHeader::GetWindowSize() const [member function]
   175     cls.add_method('GetWindowSize', 'uint16_t', [], is_const=True)
   171     cls.add_method('GetWindowSize', 'uint16_t', [], is_const=True)
   176     ## tcp-header.h: uint16_t ns3::TcpHeader::GetChecksum() const [member function]
       
   177     cls.add_method('GetChecksum', 'uint16_t', [], is_const=True)
       
   178     ## tcp-header.h: uint16_t ns3::TcpHeader::GetUrgentPointer() const [member function]
   172     ## tcp-header.h: uint16_t ns3::TcpHeader::GetUrgentPointer() const [member function]
   179     cls.add_method('GetUrgentPointer', 'uint16_t', [], is_const=True)
   173     cls.add_method('GetUrgentPointer', 'uint16_t', [], is_const=True)
   180     ## tcp-header.h: void ns3::TcpHeader::InitializeChecksum(ns3::Ipv4Address source, ns3::Ipv4Address destination, uint8_t protocol) [member function]
   174     ## tcp-header.h: void ns3::TcpHeader::InitializeChecksum(ns3::Ipv4Address source, ns3::Ipv4Address destination, uint8_t protocol) [member function]
   181     cls.add_method('InitializeChecksum', 'void', [param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'destination'), param('uint8_t', 'protocol')])
   175     cls.add_method('InitializeChecksum', 'void', [param('ns3::Ipv4Address', 'source'), param('ns3::Ipv4Address', 'destination'), param('uint8_t', 'protocol')])
   182     ## tcp-header.h: static ns3::TypeId ns3::TcpHeader::GetTypeId() [member function]
   176     ## tcp-header.h: static ns3::TypeId ns3::TcpHeader::GetTypeId() [member function]
   189     cls.add_method('GetSerializedSize', 'uint32_t', [], is_const=True, is_virtual=True)
   183     cls.add_method('GetSerializedSize', 'uint32_t', [], is_const=True, is_virtual=True)
   190     ## tcp-header.h: void ns3::TcpHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
   184     ## tcp-header.h: void ns3::TcpHeader::Serialize(ns3::Buffer::Iterator start) const [member function]
   191     cls.add_method('Serialize', 'void', [param('ns3::Buffer::Iterator', 'start')], is_const=True, is_virtual=True)
   185     cls.add_method('Serialize', 'void', [param('ns3::Buffer::Iterator', 'start')], is_const=True, is_virtual=True)
   192     ## tcp-header.h: uint32_t ns3::TcpHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
   186     ## tcp-header.h: uint32_t ns3::TcpHeader::Deserialize(ns3::Buffer::Iterator start) [member function]
   193     cls.add_method('Deserialize', 'uint32_t', [param('ns3::Buffer::Iterator', 'start')], is_virtual=True)
   187     cls.add_method('Deserialize', 'uint32_t', [param('ns3::Buffer::Iterator', 'start')], is_virtual=True)
   194     ## tcp-header.h: void ns3::TcpHeader::SetPayloadSize(uint16_t size) [member function]
       
   195     cls.add_method('SetPayloadSize', 'void', [param('uint16_t', 'size')])
       
   196     ## tcp-header.h: bool ns3::TcpHeader::IsChecksumOk() const [member function]
   188     ## tcp-header.h: bool ns3::TcpHeader::IsChecksumOk() const [member function]
   197     cls.add_method('IsChecksumOk', 'bool', [], is_const=True)
   189     cls.add_method('IsChecksumOk', 'bool', [], is_const=True)
   198     return
   190     return
   199 
   191 
   200 def register_Ns3Ipv4StaticRouting_methods(root_module, cls):
   192 def register_Ns3Ipv4StaticRouting_methods(root_module, cls):