From 9a989bf4ba1eb58bd833eec16f40d571b731287c Mon Sep 17 00:00:00 2001 From: Josh Pelkey Date: Fri, 17 Dec 2010 14:24:24 -0500 Subject: [PATCH] python scan --- .../python/apidefs/gcc-ILP32/ns3_module_common.py | 2 ++ .../apidefs/gcc-ILP32/ns3_module_internet_stack.py | 4 ++++ .../python/apidefs/gcc-ILP32/ns3_module_node.py | 14 ++++++++++++++ .../python/apidefs/gcc-LP64/ns3_module_common.py | 2 ++ .../apidefs/gcc-LP64/ns3_module_internet_stack.py | 4 ++++ .../python/apidefs/gcc-LP64/ns3_module_node.py | 14 ++++++++++++++ 6 files changed, 40 insertions(+) diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_common.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_common.py index 98708ee94..5871e9655 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_common.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_common.py @@ -2075,6 +2075,8 @@ def register_Ns3OutputStreamWrapper_methods(root_module, cls): cls.add_constructor([param('ns3::OutputStreamWrapper const &', 'arg0')]) ## output-stream-wrapper.h: ns3::OutputStreamWrapper::OutputStreamWrapper(std::string filename, std::_Ios_Openmode filemode) [constructor] cls.add_constructor([param('std::string', 'filename'), param('std::_Ios_Openmode', 'filemode')]) + ## output-stream-wrapper.h: ns3::OutputStreamWrapper::OutputStreamWrapper(std::ostream * os) [constructor] + cls.add_constructor([param('std::ostream *', 'os')]) ## output-stream-wrapper.h: std::ostream * ns3::OutputStreamWrapper::GetStream() [member function] cls.add_method('GetStream', 'std::ostream *', diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_internet_stack.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_internet_stack.py index 55f32e672..1e6ba97b7 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_internet_stack.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_internet_stack.py @@ -3552,6 +3552,10 @@ def register_Ns3TcpL4Protocol_methods(root_module, cls): cls.add_method('CreateSocket', 'ns3::Ptr< ns3::Socket >', []) + ## tcp-l4-protocol.h: ns3::Ptr ns3::TcpL4Protocol::CreateSocket(ns3::TypeId socketTypeId) [member function] + cls.add_method('CreateSocket', + 'ns3::Ptr< ns3::Socket >', + [param('ns3::TypeId', 'socketTypeId')]) ## tcp-l4-protocol.h: ns3::Ipv4EndPoint * ns3::TcpL4Protocol::Allocate() [member function] cls.add_method('Allocate', 'ns3::Ipv4EndPoint *', diff --git a/bindings/python/apidefs/gcc-ILP32/ns3_module_node.py b/bindings/python/apidefs/gcc-ILP32/ns3_module_node.py index 833361011..baf9705d4 100644 --- a/bindings/python/apidefs/gcc-ILP32/ns3_module_node.py +++ b/bindings/python/apidefs/gcc-ILP32/ns3_module_node.py @@ -5,6 +5,8 @@ def register_types(module): ## packetbb.h: ns3::PbbAddressLength [enumeration] module.add_enum('PbbAddressLength', ['IPV4', 'IPV6']) + ## tcp-socket.h: ns3::TcpStates_t [enumeration] + module.add_enum('TcpStates_t', ['CLOSED', 'LISTEN', 'SYN_SENT', 'SYN_RCVD', 'ESTABLISHED', 'CLOSE_WAIT', 'LAST_ACK', 'FIN_WAIT_1', 'FIN_WAIT_2', 'CLOSING', 'TIME_WAIT', 'LAST_STATE']) ## ethernet-header.h: ns3::ethernet_header_t [enumeration] module.add_enum('ethernet_header_t', ['LENGTH', 'VLAN', 'QINQ']) ## address.h: ns3::Address [class] @@ -2593,6 +2595,8 @@ def register_Ns3TcpSocket_methods(root_module, cls): 'ns3::TypeId', [], is_static=True) + ## tcp-socket.h: ns3::TcpSocket::TcpStateName [variable] + cls.add_static_attribute('TcpStateName', 'char const * [ 11 ] const', is_const=True) ## tcp-socket.h: uint32_t ns3::TcpSocket::GetConnCount() const [member function] cls.add_method('GetConnCount', 'uint32_t', @@ -2618,6 +2622,11 @@ def register_Ns3TcpSocket_methods(root_module, cls): 'uint32_t', [], is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True) + ## tcp-socket.h: ns3::Time ns3::TcpSocket::GetPersistTimeout() const [member function] + cls.add_method('GetPersistTimeout', + 'ns3::Time', + [], + is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True) ## tcp-socket.h: uint32_t ns3::TcpSocket::GetRcvBufSize() const [member function] cls.add_method('GetRcvBufSize', 'uint32_t', @@ -2663,6 +2672,11 @@ def register_Ns3TcpSocket_methods(root_module, cls): 'void', [param('uint32_t', 'count')], is_pure_virtual=True, visibility='private', is_virtual=True) + ## tcp-socket.h: void ns3::TcpSocket::SetPersistTimeout(ns3::Time timeout) [member function] + cls.add_method('SetPersistTimeout', + 'void', + [param('ns3::Time', 'timeout')], + is_pure_virtual=True, visibility='private', is_virtual=True) ## tcp-socket.h: void ns3::TcpSocket::SetRcvBufSize(uint32_t size) [member function] cls.add_method('SetRcvBufSize', 'void', diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_common.py b/bindings/python/apidefs/gcc-LP64/ns3_module_common.py index 98708ee94..5871e9655 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_common.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_common.py @@ -2075,6 +2075,8 @@ def register_Ns3OutputStreamWrapper_methods(root_module, cls): cls.add_constructor([param('ns3::OutputStreamWrapper const &', 'arg0')]) ## output-stream-wrapper.h: ns3::OutputStreamWrapper::OutputStreamWrapper(std::string filename, std::_Ios_Openmode filemode) [constructor] cls.add_constructor([param('std::string', 'filename'), param('std::_Ios_Openmode', 'filemode')]) + ## output-stream-wrapper.h: ns3::OutputStreamWrapper::OutputStreamWrapper(std::ostream * os) [constructor] + cls.add_constructor([param('std::ostream *', 'os')]) ## output-stream-wrapper.h: std::ostream * ns3::OutputStreamWrapper::GetStream() [member function] cls.add_method('GetStream', 'std::ostream *', diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_internet_stack.py b/bindings/python/apidefs/gcc-LP64/ns3_module_internet_stack.py index 55f32e672..1e6ba97b7 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_internet_stack.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_internet_stack.py @@ -3552,6 +3552,10 @@ def register_Ns3TcpL4Protocol_methods(root_module, cls): cls.add_method('CreateSocket', 'ns3::Ptr< ns3::Socket >', []) + ## tcp-l4-protocol.h: ns3::Ptr ns3::TcpL4Protocol::CreateSocket(ns3::TypeId socketTypeId) [member function] + cls.add_method('CreateSocket', + 'ns3::Ptr< ns3::Socket >', + [param('ns3::TypeId', 'socketTypeId')]) ## tcp-l4-protocol.h: ns3::Ipv4EndPoint * ns3::TcpL4Protocol::Allocate() [member function] cls.add_method('Allocate', 'ns3::Ipv4EndPoint *', diff --git a/bindings/python/apidefs/gcc-LP64/ns3_module_node.py b/bindings/python/apidefs/gcc-LP64/ns3_module_node.py index 833361011..baf9705d4 100644 --- a/bindings/python/apidefs/gcc-LP64/ns3_module_node.py +++ b/bindings/python/apidefs/gcc-LP64/ns3_module_node.py @@ -5,6 +5,8 @@ def register_types(module): ## packetbb.h: ns3::PbbAddressLength [enumeration] module.add_enum('PbbAddressLength', ['IPV4', 'IPV6']) + ## tcp-socket.h: ns3::TcpStates_t [enumeration] + module.add_enum('TcpStates_t', ['CLOSED', 'LISTEN', 'SYN_SENT', 'SYN_RCVD', 'ESTABLISHED', 'CLOSE_WAIT', 'LAST_ACK', 'FIN_WAIT_1', 'FIN_WAIT_2', 'CLOSING', 'TIME_WAIT', 'LAST_STATE']) ## ethernet-header.h: ns3::ethernet_header_t [enumeration] module.add_enum('ethernet_header_t', ['LENGTH', 'VLAN', 'QINQ']) ## address.h: ns3::Address [class] @@ -2593,6 +2595,8 @@ def register_Ns3TcpSocket_methods(root_module, cls): 'ns3::TypeId', [], is_static=True) + ## tcp-socket.h: ns3::TcpSocket::TcpStateName [variable] + cls.add_static_attribute('TcpStateName', 'char const * [ 11 ] const', is_const=True) ## tcp-socket.h: uint32_t ns3::TcpSocket::GetConnCount() const [member function] cls.add_method('GetConnCount', 'uint32_t', @@ -2618,6 +2622,11 @@ def register_Ns3TcpSocket_methods(root_module, cls): 'uint32_t', [], is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True) + ## tcp-socket.h: ns3::Time ns3::TcpSocket::GetPersistTimeout() const [member function] + cls.add_method('GetPersistTimeout', + 'ns3::Time', + [], + is_pure_virtual=True, is_const=True, visibility='private', is_virtual=True) ## tcp-socket.h: uint32_t ns3::TcpSocket::GetRcvBufSize() const [member function] cls.add_method('GetRcvBufSize', 'uint32_t', @@ -2663,6 +2672,11 @@ def register_Ns3TcpSocket_methods(root_module, cls): 'void', [param('uint32_t', 'count')], is_pure_virtual=True, visibility='private', is_virtual=True) + ## tcp-socket.h: void ns3::TcpSocket::SetPersistTimeout(ns3::Time timeout) [member function] + cls.add_method('SetPersistTimeout', + 'void', + [param('ns3::Time', 'timeout')], + is_pure_virtual=True, visibility='private', is_virtual=True) ## tcp-socket.h: void ns3::TcpSocket::SetRcvBufSize(uint32_t size) [member function] cls.add_method('SetRcvBufSize', 'void',