bindings, build: fix bindings and visualizer build
Includes: - scan python scripts - run python scripts from ns3 - replace visualizer file copy with configure_file to prevent cmake refreshes - replace ns__init__.py file copy with configure_file to prevent cmake refreshes - fix bindings scanning with cmake - pass include directories to modulegen for castxml consumption - add missing parameters of Recv in python-unit-tests.py - change apiscan targets from apiscan-module to libmodule-apiscan - change bindings targets from module-bingings to libmodule-bindings - scanning and bindings build tests - scan scratch python scripts - replace FindPython3 with FindPython to be compatible with CMake 3.10 - do not export private visual-simulator-impl.h - do not export udp-socket-impl.h - use .so suffix for bindings on Mac instead of .dylib
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#! /usr/bin/env python3
|
||||
|
||||
# Copyright (C) 2008-2011 INESC Porto
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
@@ -25,6 +27,8 @@ import ns.mobility
|
||||
import ns.csma
|
||||
import ns.applications
|
||||
|
||||
UINT32_MAX = 0xFFFFFFFF
|
||||
|
||||
|
||||
## TestSimulator class
|
||||
class TestSimulator(unittest.TestCase):
|
||||
@@ -170,7 +174,7 @@ class TestSimulator(unittest.TestCase):
|
||||
@return none
|
||||
"""
|
||||
assert self._received_packet is None
|
||||
self._received_packet = socket.Recv()
|
||||
self._received_packet = socket.Recv(maxSize=UINT32_MAX, flags=0)
|
||||
|
||||
sink = ns.network.Socket.CreateSocket(node, ns.core.TypeId.LookupByName("ns3::UdpSocketFactory"))
|
||||
sink.Bind(ns.network.InetSocketAddress(ns.network.Ipv4Address.GetAny(), 80))
|
||||
|
||||
Reference in New Issue
Block a user