[HICN-18] first commit of libtransport for windows 65/17165/18
authorAngelo Mantellini <manangel@cisco.com>
Wed, 30 Jan 2019 11:11:34 +0000 (12:11 +0100)
committerAngelo Mantellini <manangel@cisco.com>
Wed, 30 Jan 2019 14:23:44 +0000 (15:23 +0100)
Change-Id: I3a43b22194aa13ae5de1746e3d4bd9a275070261
Signed-off-by: Angelo Mantellini <manangel@cisco.com>
511 files changed:
AUTHORS [changed mode: 0755->0644]
CMakeLists.txt [changed mode: 0755->0644]
LICENSE [changed mode: 0755->0644]
README.md [changed mode: 0755->0644]
apps/README.md [changed mode: 0755->0644]
cmake/Modules/BuildMacros.cmake [changed mode: 0755->0644]
cmake/Modules/FindAsio.cmake [changed mode: 0755->0644]
cmake/Modules/FindGFlags.cmake [changed mode: 0755->0644]
cmake/Modules/FindGlog.cmake [changed mode: 0755->0644]
cmake/Modules/FindHicnBinaryApi.cmake [changed mode: 0755->0644]
cmake/Modules/FindLibEvent.cmake [changed mode: 0755->0644]
cmake/Modules/FindLibhicn.cmake [changed mode: 0755->0644]
cmake/Modules/FindLibmemif.cmake [changed mode: 0755->0644]
cmake/Modules/FindLibparc.cmake [changed mode: 0755->0644]
cmake/Modules/FindLibtransport.cmake [changed mode: 0755->0644]
cmake/Modules/FindLongBow.cmake [changed mode: 0755->0644]
cmake/Modules/FindPThread.cmake [new file with mode: 0644]
cmake/Modules/FindUncrustify.cmake [changed mode: 0755->0644]
cmake/Modules/FindVpp.cmake [changed mode: 0755->0644]
cmake/Modules/IosMacros.cmake [changed mode: 0755->0644]
cmake/Modules/Packager.cmake [changed mode: 0755->0644]
cmake/Modules/WindowsMacros.cmake [new file with mode: 0644]
cmake/Modules/detectCacheSize.cmake [changed mode: 0755->0644]
hicn-light/CMakeLists.txt [changed mode: 0755->0644]
hicn-light/README.md [changed mode: 0755->0644]
hicn-light/config/hicn-light.service [changed mode: 0755->0644]
hicn-light/src/CMakeLists.txt [changed mode: 0755->0644]
hicn-light/src/command_line/CMakeLists.txt [changed mode: 0755->0644]
hicn-light/src/command_line/controller/CMakeLists.txt [changed mode: 0755->0644]
hicn-light/src/command_line/controller/hicnLightControl_main.c [changed mode: 0755->0644]
hicn-light/src/command_line/daemon/CMakeLists.txt [changed mode: 0755->0644]
hicn-light/src/command_line/daemon/hicnLightDaemon_main.c [changed mode: 0755->0644]
hicn-light/src/config.h.in [changed mode: 0755->0644]
hicn-light/src/config/CMakeLists.txt [changed mode: 0755->0644]
hicn-light/src/config/commandOps.c [changed mode: 0755->0644]
hicn-light/src/config/commandOps.h [changed mode: 0755->0644]
hicn-light/src/config/commandParser.c [changed mode: 0755->0644]
hicn-light/src/config/commandParser.h [changed mode: 0755->0644]
hicn-light/src/config/commandReturn.h [changed mode: 0755->0644]
hicn-light/src/config/configuration.c [changed mode: 0755->0644]
hicn-light/src/config/configuration.h [changed mode: 0755->0644]
hicn-light/src/config/configurationFile.c [changed mode: 0755->0644]
hicn-light/src/config/configurationFile.h [changed mode: 0755->0644]
hicn-light/src/config/configurationListeners.c [changed mode: 0755->0644]
hicn-light/src/config/configurationListeners.h [changed mode: 0755->0644]
hicn-light/src/config/controlAdd.c [changed mode: 0755->0644]
hicn-light/src/config/controlAdd.h [changed mode: 0755->0644]
hicn-light/src/config/controlAddConnection.c [changed mode: 0755->0644]
hicn-light/src/config/controlAddConnection.h [changed mode: 0755->0644]
hicn-light/src/config/controlAddListener.c [changed mode: 0755->0644]
hicn-light/src/config/controlAddListener.h [changed mode: 0755->0644]
hicn-light/src/config/controlAddPunting.c [changed mode: 0755->0644]
hicn-light/src/config/controlAddPunting.h [changed mode: 0755->0644]
hicn-light/src/config/controlAddRoute.c [changed mode: 0755->0644]
hicn-light/src/config/controlAddRoute.h [changed mode: 0755->0644]
hicn-light/src/config/controlCache.c [changed mode: 0755->0644]
hicn-light/src/config/controlCache.h [changed mode: 0755->0644]
hicn-light/src/config/controlCacheClear.c [changed mode: 0755->0644]
hicn-light/src/config/controlCacheClear.h [changed mode: 0755->0644]
hicn-light/src/config/controlCacheServe.c [changed mode: 0755->0644]
hicn-light/src/config/controlCacheServe.h [changed mode: 0755->0644]
hicn-light/src/config/controlCacheStore.c [changed mode: 0755->0644]
hicn-light/src/config/controlCacheStore.h [changed mode: 0755->0644]
hicn-light/src/config/controlList.c [changed mode: 0755->0644]
hicn-light/src/config/controlList.h [changed mode: 0755->0644]
hicn-light/src/config/controlListConnections.c [changed mode: 0755->0644]
hicn-light/src/config/controlListConnections.h [changed mode: 0755->0644]
hicn-light/src/config/controlListInterfaces.c [changed mode: 0755->0644]
hicn-light/src/config/controlListInterfaces.h [changed mode: 0755->0644]
hicn-light/src/config/controlListListeners.c [changed mode: 0755->0644]
hicn-light/src/config/controlListListeners.h [changed mode: 0755->0644]
hicn-light/src/config/controlListRoutes.c [changed mode: 0755->0644]
hicn-light/src/config/controlListRoutes.h [changed mode: 0755->0644]
hicn-light/src/config/controlMapMe.c [changed mode: 0755->0644]
hicn-light/src/config/controlMapMe.h [changed mode: 0755->0644]
hicn-light/src/config/controlMapMeDiscovery.c [changed mode: 0755->0644]
hicn-light/src/config/controlMapMeDiscovery.h [changed mode: 0755->0644]
hicn-light/src/config/controlMapMeEnable.c [changed mode: 0755->0644]
hicn-light/src/config/controlMapMeEnable.h [changed mode: 0755->0644]
hicn-light/src/config/controlMapMeRetx.c [changed mode: 0755->0644]
hicn-light/src/config/controlMapMeRetx.h [changed mode: 0755->0644]
hicn-light/src/config/controlMapMeTimescale.c [changed mode: 0755->0644]
hicn-light/src/config/controlMapMeTimescale.h [changed mode: 0755->0644]
hicn-light/src/config/controlQuit.c [changed mode: 0755->0644]
hicn-light/src/config/controlQuit.h [changed mode: 0755->0644]
hicn-light/src/config/controlRemove.c [changed mode: 0755->0644]
hicn-light/src/config/controlRemove.h [changed mode: 0755->0644]
hicn-light/src/config/controlRemoveConnection.c [changed mode: 0755->0644]
hicn-light/src/config/controlRemoveConnection.h [changed mode: 0755->0644]
hicn-light/src/config/controlRemovePunting.c [changed mode: 0755->0644]
hicn-light/src/config/controlRemovePunting.h [changed mode: 0755->0644]
hicn-light/src/config/controlRemoveRoute.c [changed mode: 0755->0644]
hicn-light/src/config/controlRemoveRoute.h [changed mode: 0755->0644]
hicn-light/src/config/controlRoot.c [changed mode: 0755->0644]
hicn-light/src/config/controlRoot.h [changed mode: 0755->0644]
hicn-light/src/config/controlSet.c [changed mode: 0755->0644]
hicn-light/src/config/controlSet.h [changed mode: 0755->0644]
hicn-light/src/config/controlSetDebug.c [changed mode: 0755->0644]
hicn-light/src/config/controlSetDebug.h [changed mode: 0755->0644]
hicn-light/src/config/controlSetStrategy.c [changed mode: 0755->0644]
hicn-light/src/config/controlSetStrategy.h [changed mode: 0755->0644]
hicn-light/src/config/controlSetWldr.c [changed mode: 0755->0644]
hicn-light/src/config/controlSetWldr.h [changed mode: 0755->0644]
hicn-light/src/config/controlState.c [changed mode: 0755->0644]
hicn-light/src/config/controlState.h [changed mode: 0755->0644]
hicn-light/src/config/controlUnset.c [changed mode: 0755->0644]
hicn-light/src/config/controlUnset.h [changed mode: 0755->0644]
hicn-light/src/config/controlUnsetDebug.c [changed mode: 0755->0644]
hicn-light/src/config/controlUnsetDebug.h [changed mode: 0755->0644]
hicn-light/src/config/symbolicNameTable.c [changed mode: 0755->0644]
hicn-light/src/config/symbolicNameTable.h [changed mode: 0755->0644]
hicn-light/src/content_store/CMakeLists.txt [changed mode: 0755->0644]
hicn-light/src/content_store/contentStoreEntry.c [changed mode: 0755->0644]
hicn-light/src/content_store/contentStoreEntry.h [changed mode: 0755->0644]
hicn-light/src/content_store/contentStoreInterface.c [changed mode: 0755->0644]
hicn-light/src/content_store/contentStoreInterface.h [changed mode: 0755->0644]
hicn-light/src/content_store/contentStoreLRU.c [changed mode: 0755->0644]
hicn-light/src/content_store/contentStoreLRU.h [changed mode: 0755->0644]
hicn-light/src/content_store/listLRU.c [changed mode: 0755->0644]
hicn-light/src/content_store/listLRU.h [changed mode: 0755->0644]
hicn-light/src/content_store/listTimeOrdered.c [changed mode: 0755->0644]
hicn-light/src/content_store/listTimeOrdered.h [changed mode: 0755->0644]
hicn-light/src/core/CMakeLists.txt [changed mode: 0755->0644]
hicn-light/src/core/connection.c [changed mode: 0755->0644]
hicn-light/src/core/connection.h [changed mode: 0755->0644]
hicn-light/src/core/connectionList.c [changed mode: 0755->0644]
hicn-light/src/core/connectionList.h [changed mode: 0755->0644]
hicn-light/src/core/connectionManager.c [changed mode: 0755->0644]
hicn-light/src/core/connectionManager.h [changed mode: 0755->0644]
hicn-light/src/core/connectionTable.c [changed mode: 0755->0644]
hicn-light/src/core/connectionTable.h [changed mode: 0755->0644]
hicn-light/src/core/dispatcher.c [changed mode: 0755->0644]
hicn-light/src/core/dispatcher.h [changed mode: 0755->0644]
hicn-light/src/core/forwarder.c [changed mode: 0755->0644]
hicn-light/src/core/forwarder.h [changed mode: 0755->0644]
hicn-light/src/core/logger.c [changed mode: 0755->0644]
hicn-light/src/core/logger.h [changed mode: 0755->0644]
hicn-light/src/core/mapMe.c [changed mode: 0755->0644]
hicn-light/src/core/mapMe.h [changed mode: 0755->0644]
hicn-light/src/core/message.c [changed mode: 0755->0644]
hicn-light/src/core/message.h [changed mode: 0755->0644]
hicn-light/src/core/messageHandler.h [changed mode: 0755->0644]
hicn-light/src/core/messagePacketType.h [changed mode: 0755->0644]
hicn-light/src/core/name.c [changed mode: 0755->0644]
hicn-light/src/core/name.h [changed mode: 0755->0644]
hicn-light/src/core/nameBitvector.c [changed mode: 0755->0644]
hicn-light/src/core/nameBitvector.h [changed mode: 0755->0644]
hicn-light/src/core/numberSet.c [changed mode: 0755->0644]
hicn-light/src/core/numberSet.h [changed mode: 0755->0644]
hicn-light/src/core/streamBuffer.c [changed mode: 0755->0644]
hicn-light/src/core/streamBuffer.h [changed mode: 0755->0644]
hicn-light/src/core/system.h [changed mode: 0755->0644]
hicn-light/src/core/ticks.h [changed mode: 0755->0644]
hicn-light/src/core/wldr.c [changed mode: 0755->0644]
hicn-light/src/core/wldr.h [changed mode: 0755->0644]
hicn-light/src/io/CMakeLists.txt [changed mode: 0755->0644]
hicn-light/src/io/addressPair.c [changed mode: 0755->0644]
hicn-light/src/io/addressPair.h [changed mode: 0755->0644]
hicn-light/src/io/hicnConnection.c [changed mode: 0755->0644]
hicn-light/src/io/hicnConnection.h [changed mode: 0755->0644]
hicn-light/src/io/hicnListener.c [changed mode: 0755->0644]
hicn-light/src/io/hicnListener.h [changed mode: 0755->0644]
hicn-light/src/io/hicnTunnel.c [changed mode: 0755->0644]
hicn-light/src/io/hicnTunnel.h [changed mode: 0755->0644]
hicn-light/src/io/ioOperations.c [changed mode: 0755->0644]
hicn-light/src/io/ioOperations.h [changed mode: 0755->0644]
hicn-light/src/io/listener.h [changed mode: 0755->0644]
hicn-light/src/io/listenerSet.c [changed mode: 0755->0644]
hicn-light/src/io/listenerSet.h [changed mode: 0755->0644]
hicn-light/src/io/streamConnection.c [changed mode: 0755->0644]
hicn-light/src/io/streamConnection.h [changed mode: 0755->0644]
hicn-light/src/io/tcpListener.c [changed mode: 0755->0644]
hicn-light/src/io/tcpListener.h [changed mode: 0755->0644]
hicn-light/src/io/tcpTunnel.c [changed mode: 0755->0644]
hicn-light/src/io/tcpTunnel.h [changed mode: 0755->0644]
hicn-light/src/io/udpConnection.c [changed mode: 0755->0644]
hicn-light/src/io/udpConnection.h [changed mode: 0755->0644]
hicn-light/src/io/udpListener.c [changed mode: 0755->0644]
hicn-light/src/io/udpListener.h [changed mode: 0755->0644]
hicn-light/src/io/udpTunnel.c [changed mode: 0755->0644]
hicn-light/src/io/udpTunnel.h [changed mode: 0755->0644]
hicn-light/src/messenger/CMakeLists.txt [changed mode: 0755->0644]
hicn-light/src/messenger/messenger.c [changed mode: 0755->0644]
hicn-light/src/messenger/messenger.h [changed mode: 0755->0644]
hicn-light/src/messenger/messengerRecipient.c [changed mode: 0755->0644]
hicn-light/src/messenger/messengerRecipient.h [changed mode: 0755->0644]
hicn-light/src/messenger/missive.c [changed mode: 0755->0644]
hicn-light/src/messenger/missive.h [changed mode: 0755->0644]
hicn-light/src/messenger/missiveDeque.c [changed mode: 0755->0644]
hicn-light/src/messenger/missiveDeque.h [changed mode: 0755->0644]
hicn-light/src/messenger/missiveType.h [changed mode: 0755->0644]
hicn-light/src/platforms/CMakeLists.txt [changed mode: 0755->0644]
hicn-light/src/platforms/README.txt [changed mode: 0755->0644]
hicn-light/src/platforms/android/system.c [changed mode: 0755->0644]
hicn-light/src/platforms/darwin/system.c [changed mode: 0755->0644]
hicn-light/src/platforms/linux/system.c [changed mode: 0755->0644]
hicn-light/src/processor/CMakeLists.txt [changed mode: 0755->0644]
hicn-light/src/processor/fib.c [changed mode: 0755->0644]
hicn-light/src/processor/fib.h [changed mode: 0755->0644]
hicn-light/src/processor/fibEntry.c [changed mode: 0755->0644]
hicn-light/src/processor/fibEntry.h [changed mode: 0755->0644]
hicn-light/src/processor/fibEntryList.c [changed mode: 0755->0644]
hicn-light/src/processor/fibEntryList.h [changed mode: 0755->0644]
hicn-light/src/processor/hashTableFunction.c [changed mode: 0755->0644]
hicn-light/src/processor/hashTableFunction.h [changed mode: 0755->0644]
hicn-light/src/processor/matchingRulesTable.c [changed mode: 0755->0644]
hicn-light/src/processor/matchingRulesTable.h [changed mode: 0755->0644]
hicn-light/src/processor/messageProcessor.c [changed mode: 0755->0644]
hicn-light/src/processor/messageProcessor.h [changed mode: 0755->0644]
hicn-light/src/processor/pit.c [changed mode: 0755->0644]
hicn-light/src/processor/pit.h [changed mode: 0755->0644]
hicn-light/src/processor/pitEntry.c [changed mode: 0755->0644]
hicn-light/src/processor/pitEntry.h [changed mode: 0755->0644]
hicn-light/src/processor/pitStandard.c [changed mode: 0755->0644]
hicn-light/src/processor/pitStandard.h [changed mode: 0755->0644]
hicn-light/src/processor/pitVerdict.h [changed mode: 0755->0644]
hicn-light/src/socket/CMakeLists.txt [changed mode: 0755->0644]
hicn-light/src/socket/api.c [changed mode: 0755->0644]
hicn-light/src/socket/api.h [changed mode: 0755->0644]
hicn-light/src/socket/error.c [changed mode: 0755->0644]
hicn-light/src/socket/error.h [changed mode: 0755->0644]
hicn-light/src/socket/ops.h [changed mode: 0755->0644]
hicn-light/src/socket/ops_linux.c [changed mode: 0755->0644]
hicn-light/src/strategies/CMakeLists.txt [changed mode: 0755->0644]
hicn-light/src/strategies/loadBalancer.c [changed mode: 0755->0644]
hicn-light/src/strategies/loadBalancer.h [changed mode: 0755->0644]
hicn-light/src/strategies/loadBalancerWithPD.c [changed mode: 0755->0644]
hicn-light/src/strategies/loadBalancerWithPD.h [changed mode: 0755->0644]
hicn-light/src/strategies/nexthopState.c [changed mode: 0755->0644]
hicn-light/src/strategies/nexthopState.h [changed mode: 0755->0644]
hicn-light/src/strategies/nexthopStateWithPD.c [changed mode: 0755->0644]
hicn-light/src/strategies/nexthopStateWithPD.h [changed mode: 0755->0644]
hicn-light/src/strategies/rnd.c [changed mode: 0755->0644]
hicn-light/src/strategies/rnd.h [changed mode: 0755->0644]
hicn-light/src/strategies/rndSegment.c [changed mode: 0755->0644]
hicn-light/src/strategies/rndSegment.h [changed mode: 0755->0644]
hicn-light/src/strategies/strategyImpl.h [changed mode: 0755->0644]
hicn-light/src/utils/CMakeLists.txt [changed mode: 0755->0644]
hicn-light/src/utils/address.c [changed mode: 0755->0644]
hicn-light/src/utils/address.h [changed mode: 0755->0644]
hicn-light/src/utils/addressList.c [changed mode: 0755->0644]
hicn-light/src/utils/addressList.h [changed mode: 0755->0644]
hicn-light/src/utils/commands.h [changed mode: 0755->0644]
hicn-light/src/utils/interface.c [changed mode: 0755->0644]
hicn-light/src/utils/interface.h [changed mode: 0755->0644]
hicn-light/src/utils/interfaceSet.c [changed mode: 0755->0644]
hicn-light/src/utils/interfaceSet.h [changed mode: 0755->0644]
hicn-light/src/utils/punting.c [changed mode: 0755->0644]
hicn-light/src/utils/punting.h [changed mode: 0755->0644]
hicn-light/src/utils/utils.c [changed mode: 0755->0644]
hicn-light/src/utils/utils.h [changed mode: 0755->0644]
hicn-plugin/AUTHORS [changed mode: 0755->0644]
hicn-plugin/CMakeLists.txt [changed mode: 0755->0644]
hicn-plugin/README.md [changed mode: 0755->0644]
hicn-plugin/src/cache_policies/cs_lru.c [changed mode: 0755->0644]
hicn-plugin/src/cache_policies/cs_lru.h [changed mode: 0755->0644]
hicn-plugin/src/cache_policies/cs_policy.h [changed mode: 0755->0644]
hicn-plugin/src/cli.c [changed mode: 0755->0644]
hicn-plugin/src/data_fwd.h [changed mode: 0755->0644]
hicn-plugin/src/data_fwd_node.c [changed mode: 0755->0644]
hicn-plugin/src/data_pcslookup.h [changed mode: 0755->0644]
hicn-plugin/src/data_pcslookup_node.c [changed mode: 0755->0644]
hicn-plugin/src/data_push_node.c [changed mode: 0755->0644]
hicn-plugin/src/error.c [changed mode: 0755->0644]
hicn-plugin/src/error.h [changed mode: 0755->0644]
hicn-plugin/src/face_db.h [changed mode: 0755->0644]
hicn-plugin/src/faces/app/address_mgr.c [changed mode: 0755->0644]
hicn-plugin/src/faces/app/address_mgr.h [changed mode: 0755->0644]
hicn-plugin/src/faces/app/face_app_cli.c [changed mode: 0755->0644]
hicn-plugin/src/faces/app/face_cons.c [changed mode: 0755->0644]
hicn-plugin/src/faces/app/face_cons.h [changed mode: 0755->0644]
hicn-plugin/src/faces/app/face_prod.c [changed mode: 0755->0644]
hicn-plugin/src/faces/app/face_prod.h [changed mode: 0755->0644]
hicn-plugin/src/faces/app/face_prod_node.c [changed mode: 0755->0644]
hicn-plugin/src/faces/face.c [changed mode: 0755->0644]
hicn-plugin/src/faces/face.h [changed mode: 0755->0644]
hicn-plugin/src/faces/face_cli.c [changed mode: 0755->0644]
hicn-plugin/src/faces/ip/dpo_ip.c [changed mode: 0755->0644]
hicn-plugin/src/faces/ip/dpo_ip.h [changed mode: 0755->0644]
hicn-plugin/src/faces/ip/face_ip.c [changed mode: 0755->0644]
hicn-plugin/src/faces/ip/face_ip.h [changed mode: 0755->0644]
hicn-plugin/src/faces/ip/face_ip_cli.c [changed mode: 0755->0644]
hicn-plugin/src/faces/ip/face_ip_node.c [changed mode: 0755->0644]
hicn-plugin/src/faces/ip/face_ip_node.h [changed mode: 0755->0644]
hicn-plugin/src/faces/ip/iface_ip_node.c [changed mode: 0755->0644]
hicn-plugin/src/faces/ip/iface_ip_node.h [changed mode: 0755->0644]
hicn-plugin/src/faces/udp/dpo_udp.c [changed mode: 0755->0644]
hicn-plugin/src/faces/udp/dpo_udp.h [changed mode: 0755->0644]
hicn-plugin/src/faces/udp/face_udp.c [changed mode: 0755->0644]
hicn-plugin/src/faces/udp/face_udp.h [changed mode: 0755->0644]
hicn-plugin/src/faces/udp/face_udp_cli.c [changed mode: 0755->0644]
hicn-plugin/src/faces/udp/face_udp_node.c [changed mode: 0755->0644]
hicn-plugin/src/faces/udp/face_udp_node.h [changed mode: 0755->0644]
hicn-plugin/src/faces/udp/iface_udp_node.c [changed mode: 0755->0644]
hicn-plugin/src/faces/udp/iface_udp_node.h [changed mode: 0755->0644]
hicn-plugin/src/hashtb.c [changed mode: 0755->0644]
hicn-plugin/src/hashtb.h [changed mode: 0755->0644]
hicn-plugin/src/hicn.api [changed mode: 0755->0644]
hicn-plugin/src/hicn.c [changed mode: 0755->0644]
hicn-plugin/src/hicn.h [changed mode: 0755->0644]
hicn-plugin/src/hicn_all_api_h.h [changed mode: 0755->0644]
hicn-plugin/src/hicn_api.c [changed mode: 0755->0644]
hicn-plugin/src/hicn_api.h [changed mode: 0755->0644]
hicn-plugin/src/hicn_api_test.c [changed mode: 0755->0644]
hicn-plugin/src/hicn_msg_enum.h [changed mode: 0755->0644]
hicn-plugin/src/infra.h [changed mode: 0755->0644]
hicn-plugin/src/interest_hitcs.h [changed mode: 0755->0644]
hicn-plugin/src/interest_hitcs_node.c [changed mode: 0755->0644]
hicn-plugin/src/interest_hitpit.h [changed mode: 0755->0644]
hicn-plugin/src/interest_hitpit_node.c [changed mode: 0755->0644]
hicn-plugin/src/interest_pcslookup.h [changed mode: 0755->0644]
hicn-plugin/src/interest_pcslookup_node.c [changed mode: 0755->0644]
hicn-plugin/src/mapme.h [changed mode: 0755->0644]
hicn-plugin/src/mapme_ack.h [changed mode: 0755->0644]
hicn-plugin/src/mapme_ack_node.c [changed mode: 0755->0644]
hicn-plugin/src/mapme_ctrl.h [changed mode: 0755->0644]
hicn-plugin/src/mapme_ctrl_node.c [changed mode: 0755->0644]
hicn-plugin/src/mapme_eventmgr.c [changed mode: 0755->0644]
hicn-plugin/src/mapme_eventmgr.h [changed mode: 0755->0644]
hicn-plugin/src/mgmt.c [changed mode: 0755->0644]
hicn-plugin/src/mgmt.h [changed mode: 0755->0644]
hicn-plugin/src/params.h [changed mode: 0755->0644]
hicn-plugin/src/parser.h [changed mode: 0755->0644]
hicn-plugin/src/pcs.c [changed mode: 0755->0644]
hicn-plugin/src/pcs.h [changed mode: 0755->0644]
hicn-plugin/src/pg.c [changed mode: 0755->0644]
hicn-plugin/src/pg.h [changed mode: 0755->0644]
hicn-plugin/src/punt.c [changed mode: 0755->0644]
hicn-plugin/src/punt.h [changed mode: 0755->0644]
hicn-plugin/src/route.c [changed mode: 0755->0644]
hicn-plugin/src/route.h [changed mode: 0755->0644]
hicn-plugin/src/state.h [changed mode: 0755->0644]
hicn-plugin/src/strategies/dpo_mw.c [changed mode: 0755->0644]
hicn-plugin/src/strategies/dpo_mw.h [changed mode: 0755->0644]
hicn-plugin/src/strategies/strategy_mw.c [changed mode: 0755->0644]
hicn-plugin/src/strategies/strategy_mw.h [changed mode: 0755->0644]
hicn-plugin/src/strategies/strategy_mw_cli.c [changed mode: 0755->0644]
hicn-plugin/src/strategy.c [changed mode: 0755->0644]
hicn-plugin/src/strategy.h [changed mode: 0755->0644]
hicn-plugin/src/strategy_dpo_ctx.h [changed mode: 0755->0644]
hicn-plugin/src/strategy_dpo_manager.c [changed mode: 0755->0644]
hicn-plugin/src/strategy_dpo_manager.h [changed mode: 0755->0644]
hicn-plugin/src/utils.h [changed mode: 0755->0644]
hicn-plugin/src/vface_db.h [changed mode: 0755->0644]
lib/CMakeLists.txt [changed mode: 0755->0644]
lib/README.md [changed mode: 0755->0644]
lib/doc/CMakeLists.txt [changed mode: 0755->0644]
lib/doc/Doxyfile.in [changed mode: 0755->0644]
lib/src/CMakeLists.txt [changed mode: 0755->0644]
lib/src/base.h [changed mode: 0755->0644]
lib/src/common.c [changed mode: 0755->0644]
lib/src/common.h [changed mode: 0755->0644]
lib/src/compat.c [changed mode: 0755->0644]
lib/src/compat.h [changed mode: 0755->0644]
lib/src/error.c [changed mode: 0755->0644]
lib/src/error.h [changed mode: 0755->0644]
lib/src/header.h [changed mode: 0755->0644]
lib/src/hicn.h [changed mode: 0755->0644]
lib/src/mapme.c [changed mode: 0755->0644]
lib/src/mapme.h [changed mode: 0755->0644]
lib/src/name.c [changed mode: 0755->0644]
lib/src/name.h [changed mode: 0755->0644]
lib/src/ops.c [changed mode: 0755->0644]
lib/src/ops.h [changed mode: 0755->0644]
lib/src/protocol.h [changed mode: 0755->0644]
lib/src/protocol/ah.c [changed mode: 0755->0644]
lib/src/protocol/ah.h [changed mode: 0755->0644]
lib/src/protocol/icmp.c [changed mode: 0755->0644]
lib/src/protocol/icmp.h [changed mode: 0755->0644]
lib/src/protocol/icmprd.h [changed mode: 0755->0644]
lib/src/protocol/ipv4.c [changed mode: 0755->0644]
lib/src/protocol/ipv4.h [changed mode: 0755->0644]
lib/src/protocol/ipv6.c [changed mode: 0755->0644]
lib/src/protocol/ipv6.h [changed mode: 0755->0644]
lib/src/protocol/tcp.c [changed mode: 0755->0644]
lib/src/protocol/tcp.h [changed mode: 0755->0644]
lib/src/protocol/udp.h [changed mode: 0755->0644]
libtransport/AUTHORS [changed mode: 0755->0644]
libtransport/CMakeLists.txt [changed mode: 0755->0644]
libtransport/README.md [changed mode: 0755->0644]
libtransport/cmake/Modules/Android.cmake [changed mode: 0755->0644]
libtransport/cmake/Modules/DefaultConfiguration.cmake [changed mode: 0755->0644]
libtransport/cmake/Modules/Ios.cmake [changed mode: 0755->0644]
libtransport/cmake/Modules/Packaging.cmake [changed mode: 0755->0644]
libtransport/cmake/Modules/TestMacros.cmake [changed mode: 0755->0644]
libtransport/src/hicn/transport/CMakeLists.txt [changed mode: 0755->0644]
libtransport/src/hicn/transport/config.h.in [changed mode: 0755->0644]
libtransport/src/hicn/transport/core/CMakeLists.txt [changed mode: 0755->0644]
libtransport/src/hicn/transport/core/content_object.cc
libtransport/src/hicn/transport/core/hicn_forwarder_interface.cc
libtransport/src/hicn/transport/core/interest.cc
libtransport/src/hicn/transport/core/name.h
libtransport/src/hicn/transport/core/packet.cc
libtransport/src/hicn/transport/core/pending_interest.cc
libtransport/src/hicn/transport/core/pending_interest.h
libtransport/src/hicn/transport/core/portal.h
libtransport/src/hicn/transport/core/prefix.cc
libtransport/src/hicn/transport/core/socket_connector.cc
libtransport/src/hicn/transport/core/socket_connector.h
libtransport/src/hicn/transport/core/test/CMakeLists.txt [changed mode: 0755->0644]
libtransport/src/hicn/transport/core/vpp_forwarder_interface.cc
libtransport/src/hicn/transport/errors/CMakeLists.txt [changed mode: 0755->0644]
libtransport/src/hicn/transport/errors/errors.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/errors/invalid_ip_address_exception.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/errors/malformed_ahpacket_exception.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/errors/malformed_name_exception.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/errors/malformed_packet_exception.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/errors/not_implemented_exception.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/errors/null_pointer_exception.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/errors/runtime_exception.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/errors/tokenizer_exception.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/http/CMakeLists.txt [changed mode: 0755->0644]
libtransport/src/hicn/transport/http/callbacks.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/http/client_connection.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/http/client_connection.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/http/default_values.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/http/facade.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/http/message.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/http/request.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/http/request.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/http/response.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/http/response.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/http/server_acceptor.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/http/server_acceptor.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/http/server_publisher.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/http/server_publisher.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/interfaces/CMakeLists.txt [changed mode: 0755->0644]
libtransport/src/hicn/transport/interfaces/async_transport.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/interfaces/full_duplex_socket.cc
libtransport/src/hicn/transport/interfaces/full_duplex_socket.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/interfaces/publication_options.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/interfaces/rtc_socket_consumer.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/interfaces/rtc_socket_consumer.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/interfaces/rtc_socket_producer.cc
libtransport/src/hicn/transport/interfaces/rtc_socket_producer.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/interfaces/socket.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/interfaces/socket_consumer.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/interfaces/socket_options_default_values.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/interfaces/socket_options_keys.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/interfaces/socket_producer.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/interfaces/socket_producer.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/portability/CMakeLists.txt [changed mode: 0755->0644]
libtransport/src/hicn/transport/portability/c_portability.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/portability/portability.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/portability/win_portability.h [new file with mode: 0644]
libtransport/src/hicn/transport/protocols/CMakeLists.txt [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/cbr.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/cbr.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/consumer.conf [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/download_observer.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/protocol.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/protocol.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/raaqm.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/raaqm.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/raaqm_data_path.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/raaqm_data_path.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/rate_estimation.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/rate_estimation.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/rtc.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/rtc_data_path.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/test/CMakeLists.txt [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/test/test_transport_producer.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/vegas.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/vegas_rto_estimator.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/protocols/vegas_rto_estimator.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/CMakeLists.txt [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/array.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/branch_prediction.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/content_store.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/content_store.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/conversions.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/crypto_hash.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/crypto_hash_type.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/crypto_hasher.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/crypto_suite.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/daemonizator.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/daemonizator.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/deadline_timer.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/endianess.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/epoll_event_reactor.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/epoll_event_reactor.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/event_reactor.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/event_thread.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/fd_deadline_timer.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/hash.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/identity.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/key_id.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/linux.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/literals.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/membuf.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/membuf.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/min_filter.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/object_pool.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/ring_buffer.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/sharable_vector.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/signer.cc
libtransport/src/hicn/transport/utils/signer.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/socket.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/spinlock.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/stream_buffer.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/string_tokenizer.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/string_tokenizer.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/test.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/uri.cc [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/uri.h [changed mode: 0755->0644]
libtransport/src/hicn/transport/utils/verifier.cc
libtransport/src/hicn/transport/utils/verifier.h [changed mode: 0755->0644]
utils/CMakeLists.txt [changed mode: 0755->0644]
utils/src/hiperf.cc [changed mode: 0755->0644]
utils/src/ping_client.cc [changed mode: 0755->0644]
utils/src/ping_server.cc [changed mode: 0755->0644]

diff --git a/AUTHORS b/AUTHORS
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
diff --git a/LICENSE b/LICENSE
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
diff --git a/cmake/Modules/FindPThread.cmake b/cmake/Modules/FindPThread.cmake
new file mode 100644 (file)
index 0000000..6f0eeb7
--- /dev/null
@@ -0,0 +1,58 @@
+# Copyright (c) 2019 Cisco and/or its affiliates.\r
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at:\r
+#\r
+#     http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
+# limitations under the License.\r
+\r
+########################################\r
+#\r
+# Find the PThread libraries and includes\r
+# This module sets:\r
+#  PTHREAD_FOUND: True if pthread was found\r
+#  PTHREADR_LIBRARY:  The pthread library\r
+#  PTHREAD_LIBRARIES:  The pthread library and dependencies\r
+#  PTHREAD_INCLUDE_DIR:  The pthread include dir\r
+#\r
+\r
+\r
+set(PTHREAD_SEARCH_PATH_LIST\r
+  ${PTHREAD_HOME}\r
+  $ENV{PTHREAD_HOME}\r
+  /usr/local\r
+  /opt\r
+  /usr\r
+)\r
+\r
+find_path(PTHREAD_INCLUDE_DIR pthread.h\r
+  HINTS ${PTHREAD_SEARCH_PATH_LIST}\r
+  PATH_SUFFIXES include\r
+  DOC "Find the pthreadincludes"\r
+)\r
+\r
+if(CMAKE_SIZEOF_VOID_P EQUAL 8)\r
+  find_library(PTHREAD_LIBRARY NAMES pthreadVC2.lib\r
+    HINTS ${PTHREAD_SEARCH_PATH_LIST}\r
+    PATH_SUFFIXES lib/x64\r
+    DOC "Find the pthread libraries"\r
+  )\r
+elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)\r
+  find_library(PTHREAD_LIBRARY NAMES pthreadVC2.lib\r
+    HINTS ${PTHREAD_SEARCH_PATH_LIST}\r
+    PATH_SUFFIXES lib/x32\r
+    DOC "Find the pthread libraries"\r
+  )\r
+endif()\r
+\r
+\r
+set(PTHREAD_LIBRARIES ${PTHREAD_LIBRARY})\r
+set(PTHREAD_INCLUDE_DIRS ${PTHREAD_INCLUDE_DIR})\r
+\r
+include(FindPackageHandleStandardArgs)\r
+find_package_handle_standard_args(Pthread DEFAULT_MSG PTHREAD_LIBRARIES PTHREAD_INCLUDE_DIRS)
\ No newline at end of file
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
diff --git a/cmake/Modules/WindowsMacros.cmake b/cmake/Modules/WindowsMacros.cmake
new file mode 100644 (file)
index 0000000..20f8727
--- /dev/null
@@ -0,0 +1,33 @@
+# Copyright (c) 2017-2019 Cisco and/or its affiliates.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at:
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+if(WIN32)
+  find_package_wrapper(LibEvent REQUIRED)
+  find_package_wrapper(OpenSSL REQUIRED)
+  find_package_wrapper(PThread REQUIRED)
+  find_library(WSOCK32_LIBRARY wsock32 required)
+  find_library(WS2_32_LIBRARY ws2_32 required)
+  list(APPEND WINDOWS_LIBRARIES
+    ${LIBEVENT_LIBRARIES}
+    ${OPENSSL_LIBRARIES}
+    ${PTHREAD_LIBRARIES}
+    ${WSOCK32_LIBRARY}
+    ${WS2_32_LIBRARY}
+  )
+
+  list(APPEND WINDOWS_INCLUDE_DIRS
+    ${LIBEVENT_INCLUDE_DIRS}
+    ${OPENSSL_INCLUDE_DIR}
+    ${PTHREAD_INCLUDE_DIRS}
+  )
+endif()
\ No newline at end of file
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 097ab03..c5cb952
@@ -59,6 +59,7 @@ if ((BUILD_MEMIF_CONNECTOR OR BUILD_VPP_PLUGIN) AND "${CMAKE_SYSTEM_NAME}" STREQ
   )
 endif ()
 
+include(WindowsMacros)
 include(IosMacros)
 find_package_wrapper(Libparc REQUIRED)
 find_package_wrapper(Asio REQUIRED)
@@ -102,6 +103,7 @@ list(APPEND LIBRARIES
   ${VPP_LIBRARIES}
   ${ANDROID_LIBRARIES}
   ${OPENSSL_LIBRARIES}
+  ${WINDOWS_LIBRARIES}
 )
 
 # Include dirs -- Order does matter!
@@ -111,6 +113,7 @@ list(APPEND LIBTRANSPORT_INCLUDE_DIRS
   ${LIBPARC_INCLUDE_DIRS}
   ${CMAKE_THREADS_INCLUDE_DIRS}
   ${ASIO_INCLUDE_DIRS}
+  ${WINDOWS_INCLUDE_DIRS}
 )
 
 add_subdirectory(${TRANSPORT_ROOT_PATH})
\ No newline at end of file
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index dc20565..4cd5623 100644 (file)
@@ -18,7 +18,9 @@
 #include <hicn/transport/utils/branch_prediction.h>
 
 extern "C" {
+#ifndef _WIN32
 TRANSPORT_CLANG_DISABLE_WARNING("-Wextern-c-compat")
+#endif
 #include <hicn/hicn.h>
 }
 
index 1d82ff0..e8b38cd 100644 (file)
@@ -15,7 +15,6 @@
 
 #include <hicn/transport/core/hicn_forwarder_interface.h>
 
-
 #define ADDR_INET 1
 #define ADDR_INET6 2
 #define ADD_ROUTE 3
index ff4a5bb..4ea0c44 100644 (file)
@@ -18,7 +18,9 @@
 #include <hicn/transport/utils/hash.h>
 
 extern "C" {
+#ifndef _WIN32
 TRANSPORT_CLANG_DISABLE_WARNING("-Wextern-c-compat")
+#endif
 #include <hicn/hicn.h>
 }
 
index b0da150..b2f9139 100644 (file)
@@ -24,7 +24,9 @@
 #include <unordered_map>
 
 extern "C" {
+#ifndef _WIN32
 TRANSPORT_CLANG_DISABLE_WARNING("-Wextern-c-compat")
+#endif
 #include <hicn/hicn.h>
 };
 
index 69cbb3c..dd150d7 100644 (file)
@@ -19,7 +19,9 @@
 #include <hicn/transport/utils/log.h>
 
 extern "C" {
+#ifndef _WIN32
 TRANSPORT_CLANG_DISABLE_WARNING("-Wextern-c-compat")
+#endif
 #include <hicn/error.h>
 }
 
index a2df9ba..73bc41e 100644 (file)
@@ -34,10 +34,10 @@ PendingInterest::PendingInterest(Interest::Ptr &&interest,
       on_interest_timeout_callback_(),
       received_(false) {}
 
-PendingInterest::PendingInterest(Interest::Ptr &&interest,
-                                 const OnContentObjectCallback &&on_content_object,
-                                 const OnInterestTimeoutCallback &&on_interest_timeout,
-                                 std::unique_ptr<asio::steady_timer> &&timer)
+PendingInterest::PendingInterest(
+    Interest::Ptr &&interest, const OnContentObjectCallback &&on_content_object,
+    const OnInterestTimeoutCallback &&on_interest_timeout,
+    std::unique_ptr<asio::steady_timer> &&timer)
     : interest_(std::move(interest)),
       timer_(std::move(timer)),
       on_content_object_callback_(std::move(on_content_object)),
@@ -60,7 +60,8 @@ const OnContentObjectCallback &PendingInterest::getOnDataCallback() const {
   return on_content_object_callback_;
 }
 
-void PendingInterest::setOnDataCallback(const OnContentObjectCallback &on_content_object) {
+void PendingInterest::setOnDataCallback(
+    const OnContentObjectCallback &on_content_object) {
   PendingInterest::on_content_object_callback_ = on_content_object;
 }
 
@@ -68,7 +69,8 @@ const OnInterestTimeoutCallback &PendingInterest::getOnTimeoutCallback() const {
   return on_interest_timeout_callback_;
 }
 
-void PendingInterest::setOnTimeoutCallback(const OnInterestTimeoutCallback &on_interest_timeout) {
+void PendingInterest::setOnTimeoutCallback(
+    const OnInterestTimeoutCallback &on_interest_timeout) {
   PendingInterest::on_interest_timeout_callback_ = on_interest_timeout;
 }
 
index 58b51db..9a26c7b 100644 (file)
@@ -34,8 +34,9 @@ class RawSocketInterface;
 template <typename ForwarderInt>
 class Portal;
 
-typedef std::function<void(Interest::Ptr&&, ContentObject::Ptr&&)> OnContentObjectCallback;
-typedef std::function<void(Interest::Ptr&&)> OnInterestTimeoutCallback;
+typedef std::function<void(Interest::Ptr &&, ContentObject::Ptr &&)>
+    OnContentObjectCallback;
+typedef std::function<void(Interest::Ptr &&)> OnInterestTimeoutCallback;
 typedef std::function<void(const std::error_code &)> TimerCallback;
 
 class PendingInterest {
@@ -77,7 +78,8 @@ class PendingInterest {
 
   const OnInterestTimeoutCallback &getOnTimeoutCallback() const;
 
-  void setOnTimeoutCallback(const OnInterestTimeoutCallback &on_interest_timeout);
+  void setOnTimeoutCallback(
+      const OnInterestTimeoutCallback &on_interest_timeout);
 
  private:
   Interest::Ptr interest_;
index 58406bb..0932b56 100644 (file)
@@ -127,9 +127,7 @@ class Portal {
     forwarder_interface_.connect(is_consumer);
   }
 
-  ~Portal() {
-    stopEventsLoop(true);
-  }
+  ~Portal() { stopEventsLoop(true); }
 
   TRANSPORT_ALWAYS_INLINE bool interestIsPending(const Name &name) {
     auto it = pending_interest_hash_table_.find(name);
@@ -153,10 +151,10 @@ class Portal {
                   std::placeholders::_1, name));
   }
 
-  TRANSPORT_ALWAYS_INLINE void sendInterest(Interest::Ptr &&interest,
-        const OnContentObjectCallback &&on_content_object_callback,
-        const OnInterestTimeoutCallback &&on_interest_timeout_callback) {
-
+  TRANSPORT_ALWAYS_INLINE void sendInterest(
+      Interest::Ptr &&interest,
+      const OnContentObjectCallback &&on_content_object_callback,
+      const OnInterestTimeoutCallback &&on_interest_timeout_callback) {
     const Name name(interest->getName(), true);
 
     // Send it
@@ -168,9 +166,8 @@ class Portal {
         std::make_unique<asio::steady_timer>(io_service_));
 
     pending_interest_hash_table_[name]->startCountdown(
-        std::bind(&Portal<ForwarderInt>::timerHandler,
-        this, std::placeholders::_1, name));
-
+        std::bind(&Portal<ForwarderInt>::timerHandler, this,
+                  std::placeholders::_1, name));
   }
 
   TRANSPORT_ALWAYS_INLINE void timerHandler(const std::error_code &ec,
@@ -187,9 +184,9 @@ class Portal {
         std::unique_ptr<PendingInterest> ptr = std::move(it->second);
         pending_interest_hash_table_.erase(it);
 
-        if(ptr->getOnTimeoutCallback() != UNSET_CALLBACK){
-            ptr->on_interest_timeout_callback_(std::move(ptr->getInterest()));
-        }else if (consumer_callback_) {
+        if (ptr->getOnTimeoutCallback() != UNSET_CALLBACK) {
+          ptr->on_interest_timeout_callback_(std::move(ptr->getInterest()));
+        } else if (consumer_callback_) {
           consumer_callback_->onTimeout(std::move(ptr->getInterest()));
         }
       }
@@ -231,7 +228,7 @@ class Portal {
 
     clear();
 
-    if(kill_connection) {
+    if (kill_connection) {
       connector_.close();
     }
 
@@ -310,11 +307,11 @@ class Portal {
         interest_ptr->setReceived();
         pending_interest_hash_table_.erase(content_object->getName());
 
-        if(interest_ptr->getOnDataCallback() != UNSET_CALLBACK){
-            interest_ptr->on_content_object_callback_(
-                std::move(interest_ptr->getInterest()),
-                std::move(content_object));
-        }else if (consumer_callback_) {
+        if (interest_ptr->getOnDataCallback() != UNSET_CALLBACK) {
+          interest_ptr->on_content_object_callback_(
+              std::move(interest_ptr->getInterest()),
+              std::move(content_object));
+        } else if (consumer_callback_) {
           consumer_callback_->onContentObject(
               std::move(interest_ptr->getInterest()),
               std::move(content_object));
index 69c2b84..575bcc2 100644 (file)
 #include <hicn/transport/errors/errors.h>
 #include <hicn/transport/utils/string_tokenizer.h>
 
+#ifndef _WIN32
 extern "C" {
 #include <arpa/inet.h>
 }
+#else
+#include <hicn/transport/portability/win_portability.h>
+#endif
 
 #include <cstring>
 #include <memory>
index 704d3ba..84a843f 100644 (file)
@@ -13,6 +13,9 @@
  * limitations under the License.
  */
 
+#ifdef _WIN32
+#include <hicn/transport/portability/win_portability.h>
+#endif
 #include <hicn/transport/core/socket_connector.h>
 #include <hicn/transport/errors/errors.h>
 #include <hicn/transport/utils/log.h>
@@ -130,7 +133,8 @@ void SocketConnector::doWrite() {
           if (!output_buffer_.empty()) {
             doWrite();
           }
-        } else if (ec.value() == static_cast<int>(std::errc::operation_canceled)) {
+        } else if (ec.value() ==
+                   static_cast<int>(std::errc::operation_canceled)) {
           // The connection has been closed by the application.
           return;
         } else {
@@ -149,7 +153,8 @@ void SocketConnector::doReadBody(std::size_t body_length) {
         if (TRANSPORT_EXPECT_TRUE(!ec)) {
           receive_callback_(std::move(read_msg_));
           doReadHeader();
-        } else if (ec.value() == static_cast<int>(std::errc::operation_canceled)) {
+        } else if (ec.value() ==
+                   static_cast<int>(std::errc::operation_canceled)) {
           // The connection has been closed by the application.
           return;
         } else {
@@ -176,7 +181,8 @@ void SocketConnector::doReadHeader() {
           } else {
             TRANSPORT_LOGE("Decoding error. Ignoring packet.");
           }
-        } else if (ec.value() == static_cast<int>(std::errc::operation_canceled)) {
+        } else if (ec.value() ==
+                   static_cast<int>(std::errc::operation_canceled)) {
           // The connection has been closed by the application.
           return;
         } else {
index e014111..6eff1af 100644 (file)
@@ -19,8 +19,8 @@
 #include <hicn/transport/core/name.h>
 #include <hicn/transport/utils/branch_prediction.h>
 
-#include <asio/steady_timer.hpp>
 #include <asio.hpp>
+#include <asio/steady_timer.hpp>
 #include <deque>
 
 namespace transport {
index 0335c38..828e31a 100644 (file)
@@ -45,7 +45,8 @@ VPPForwarderInterface::VPPForwarderInterface(MemifConnector &connector)
 
 VPPForwarderInterface::~VPPForwarderInterface() {
   if (sw_if_index_ != uint32_t(~0) && VPPForwarderInterface::memif_api_) {
-    int ret = memif_binary_api_delete_memif(VPPForwarderInterface::memif_api_, sw_if_index_);
+    int ret = memif_binary_api_delete_memif(VPPForwarderInterface::memif_api_,
+                                            sw_if_index_);
 
     if (ret < 0) {
       TRANSPORT_LOGE("Error deleting memif with sw idx %u.", sw_if_index_);
@@ -82,7 +83,7 @@ uint32_t VPPForwarderInterface::getMemifConfiguration() {
   memif_output_params_t output_params = {0};
 
   ret = memif_binary_api_create_memif(VPPForwarderInterface::memif_api_,
-                                    &input_params, &output_params);
+                                      &input_params, &output_params);
 
   if (ret < 0) {
     throw errors::RuntimeException(
@@ -105,8 +106,8 @@ void VPPForwarderInterface::consumerConnection() {
 
   input.swif = sw_if_index_;
 
-  int ret = hicn_binary_api_register_cons_app(
-                    VPPForwarderInterface::hicn_api_, &input, &output);
+  int ret = hicn_binary_api_register_cons_app(VPPForwarderInterface::hicn_api_,
+                                              &input, &output);
 
   if (ret < 0) {
     throw errors::RuntimeException(hicn_binary_api_get_error_string(ret));
@@ -178,7 +179,7 @@ void VPPForwarderInterface::registerRoute(Prefix &prefix) {
     input.cs_reserved = content_store_reserved_;
 
     int ret = hicn_binary_api_register_prod_app(
-                      VPPForwarderInterface::hicn_api_, &input, &output);
+        VPPForwarderInterface::hicn_api_, &input, &output);
 
     if (ret < 0) {
       throw errors::RuntimeException(hicn_binary_api_get_error_string(ret));
@@ -206,8 +207,8 @@ void VPPForwarderInterface::registerRoute(Prefix &prefix) {
     params.prefix->prefix_len = addr.prefix_len;
     params.face_id = face_id_;
 
-    int ret = hicn_binary_api_register_route(
-                      VPPForwarderInterface::hicn_api_, &params);
+    int ret = hicn_binary_api_register_route(VPPForwarderInterface::hicn_api_,
+                                             &params);
 
     if (ret < 0) {
       throw errors::RuntimeException(hicn_binary_api_get_error_string(ret));
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 7d4485c..b2f271b
 
 #pragma once
 
+#ifdef _WIN32
+#include <hicn/transport/portability/win_portability.h>
+#endif
+
 #include <hicn/transport/utils/sharable_vector.h>
 
 #include <map>
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 492b4ec..2911377
 #include <hicn/transport/portability/portability.h>
 #include <hicn/transport/utils/sharable_vector.h>
 
+#ifndef _WIN32
 #include <sys/uio.h>
+#endif
+
 #include <memory>
 
 namespace transport {
index e06858c..0a091d9 100644 (file)
@@ -57,21 +57,23 @@ AsyncFullDuplexSocket::AsyncFullDuplexSocket(const Prefix &locator,
   producer_->setSocketOption(GeneralTransportOptions::OUTPUT_BUFFER_SIZE,
                              uint32_t{150000});
 
-  producer_->setSocketOption(
-      ProducerCallbacksOptions::CONTENT_PRODUCED,
-      std::bind(&AsyncFullDuplexSocket::onContentProduced, this, _1, _2, _3));
+  ProducerContentCallback producer_callback =
+      std::bind(&AsyncFullDuplexSocket::onContentProduced, this, _1, _2, _3);
+  producer_->setSocketOption(ProducerCallbacksOptions::CONTENT_PRODUCED,
+                             producer_callback);
 
   producer_->connect();
 
-  consumer_->setSocketOption(ConsumerCallbacksOptions::CONTENT_OBJECT_TO_VERIFY,
-                             (ConsumerContentObjectVerificationCallback)[](
-                                 ConsumerSocket & s, const ContentObject &c)
-                                 ->bool { return true; });
+  consumer_->setSocketOption(
+      ConsumerCallbacksOptions::CONTENT_OBJECT_TO_VERIFY,
+      (ConsumerContentObjectVerificationCallback)[](ConsumerSocket & s,
+                                                    const ContentObject &c)
+          ->bool { return true; });
 
-  ConsumerContentCallback callback =
+  ConsumerContentCallback consumer_callback =
       std::bind(&AsyncFullDuplexSocket::onContentRetrieved, this, _1, _2, _3);
   consumer_->setSocketOption(ConsumerCallbacksOptions::CONTENT_RETRIEVED,
-                             callback);
+                             consumer_callback);
 
   consumer_->setSocketOption(GeneralTransportOptions::MAX_INTEREST_RETX,
                              uint32_t{4});
old mode 100755 (executable)
new mode 100644 (file)
index cc4f478..ef952a8
@@ -22,8 +22,7 @@ namespace interface {
 RTCConsumerSocket::RTCConsumerSocket(int protocol, asio::io_service &io_service)
     : ConsumerSocket(protocol, io_service) {}
 
-RTCConsumerSocket::RTCConsumerSocket(int protocol)
-    : ConsumerSocket(protocol) {}
+RTCConsumerSocket::RTCConsumerSocket(int protocol) : ConsumerSocket(protocol) {}
 
 RTCConsumerSocket::~RTCConsumerSocket() {}
 
index f19502d..84c80da 100644 (file)
@@ -72,7 +72,6 @@ RTCProducerSocket::RTCProducerSocket()
   prodLabel_ = ((rand() % 255) << 24UL);
 }
 
-
 RTCProducerSocket::~RTCProducerSocket() {}
 
 void RTCProducerSocket::registerName(Prefix &producer_namespace) {
old mode 100755 (executable)
new mode 100644 (file)
index d9204f1..5bd522f
@@ -54,7 +54,6 @@ ProducerSocket::ProducerSocket(asio::io_service &io_service)
 }
 
 ProducerSocket::~ProducerSocket() {
-
   processing_thread_stop_ = true;
   portal_->stopEventsLoop(true);
 
@@ -78,9 +77,7 @@ void ProducerSocket::serveForever() {
   }
 }
 
-void ProducerSocket::stop() {
-  portal_->stopEventsLoop();
-}
+void ProducerSocket::stop() { portal_->stopEventsLoop(); }
 
 void ProducerSocket::registerPrefix(const Prefix &producer_namespace) {
   served_namespaces_.push_back(producer_namespace);
old mode 100755 (executable)
new mode 100644 (file)
index eee973c..5ad3c82
@@ -22,5 +22,11 @@ list(APPEND SOURCE_FILES
   ""
 )
 
+if(WIN32)
+  list(APPEND HEADER_FILES
+    ${CMAKE_CURRENT_SOURCE_DIR}/win_portability.h
+  )
+endif()
+
 set(SOURCE_FILES ${SOURCE_FILES} PARENT_SCOPE)
 set(HEADER_FILES ${HEADER_FILES} PARENT_SCOPE)
\ No newline at end of file
old mode 100755 (executable)
new mode 100644 (file)
index 7063e18..1d97a34
 
 #pragma once
 
+#ifdef _WIN32
+#include <hicn/transport/portability/win_portability.h>
+#endif
+
 #include <hicn/transport/portability/c_portability.h>
 
 #include <string.h>
diff --git a/libtransport/src/hicn/transport/portability/win_portability.h b/libtransport/src/hicn/transport/portability/win_portability.h
new file mode 100644 (file)
index 0000000..f1d6e2b
--- /dev/null
@@ -0,0 +1,38 @@
+/*\r
+ * Copyright (c) 2017-2019 Cisco and/or its affiliates.\r
+ * Copyright 2017 Facebook, Inc.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ *   http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+#pragma once\r
+#define WIN32_LEAN_AND_MEAN\r
+#define NOMINMAX\r
+#include <parc/windows/parc_Utils.h>\r
+#include <stdint.h>\r
+#include <stdio.h>\r
+#include <string.h>\r
+#include <time.h>\r
+#include <windows.h>\r
+#include <winsock2.h>\r
+#include <ws2ipdef.h>\r
+#include <ws2tcpip.h>\r
+#include <algorithm>\r
+\r
+#define __ORDER_LITTLE_ENDIAN__ 0x41424344UL\r
+#define __ORDER_BIG_ENDIAN__ 0x44434241UL\r
+#define __BYTE_ORDER__ ('ABCD')\r
+#undef DELETE\r
+\r
+#define HAVE_STRUCT_TIMESPEC\r
+#include <pthread.h>
\ No newline at end of file
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index f876cf4..2e7aa53
@@ -42,10 +42,9 @@ RaaqmDataPath::RaaqmDataPath(double drop_factor,
       raw_data_bytes_received_(0),
       last_raw_data_bytes_received_(0),
       rtt_samples_(samples_),
+      last_received_pkt_(std::chrono::steady_clock::now()),
       average_rtt_(0),
-      alpha_(ALPHA) {
-  gettimeofday(&m_last_received_pkt_, 0);
-}
+      alpha_(ALPHA) {}
 
 RaaqmDataPath &RaaqmDataPath::insertNewRtt(uint64_t new_rtt) {
   rtt_ = new_rtt;
@@ -59,7 +58,7 @@ RaaqmDataPath &RaaqmDataPath::insertNewRtt(uint64_t new_rtt) {
     prop_delay_ = rtt_min_;
   }
 
-  gettimeofday(&m_last_received_pkt_, 0);
+  last_received_pkt_ = std::chrono::steady_clock::now();
 
   return *this;
 }
@@ -144,9 +143,9 @@ bool RaaqmDataPath::newPropagationDelayAvailable() {
 unsigned int RaaqmDataPath::getPropagationDelay() { return prop_delay_; }
 
 bool RaaqmDataPath::isStale() {
-  struct timeval now;
-  gettimeofday(&now, 0);
-  double time = getMicroSeconds(now) - getMicroSeconds(m_last_received_pkt_);
+  TimePoint now = std::chrono::steady_clock::now();
+  auto time = std::chrono::duration_cast<Microseconds>(now - last_received_pkt_)
+                  .count();
   if (time > 2000000) {
     return true;
   }
old mode 100755 (executable)
new mode 100644 (file)
index 6f63940..a0b9ec9
@@ -17,7 +17,7 @@
 
 #include <hicn/transport/utils/min_filter.h>
 
-#include <sys/time.h>
+#include <chrono>
 #include <climits>
 #include <iostream>
 
@@ -30,6 +30,9 @@ namespace transport {
 namespace protocol {
 
 class RaaqmDataPath {
+  using TimePoint = std::chrono::steady_clock::time_point;
+  using Microseconds = std::chrono::microseconds;
+
  public:
   RaaqmDataPath(double drop_factor, double minimum_drop_probability,
                 unsigned new_timer, unsigned int samples,
@@ -219,7 +222,7 @@ class RaaqmDataPath {
   /**
    * Time of the last call to the path reporter method
    */
-  struct timeval m_last_received_pkt_;
+  TimePoint last_received_pkt_;
 
   double average_rtt_;
   double alpha_;
old mode 100755 (executable)
new mode 100644 (file)
index e313bf9..b603ec2
@@ -16,6 +16,8 @@
 #include <hicn/transport/protocols/rate_estimation.h>
 #include <hicn/transport/utils/log.h>
 
+#include <thread>
+
 namespace transport {
 
 namespace protocol {
@@ -31,7 +33,8 @@ void *Timer(void *data) {
   pthread_mutex_unlock(&(estimator->mutex_));
 
   while (estimator->is_running_) {
-    usleep(KV * dat_rtt);
+    std::this_thread::sleep_for(
+        std::chrono::microseconds((uint64_t)(KV * dat_rtt)));
 
     pthread_mutex_lock(&(estimator->mutex_));
 
@@ -88,8 +91,8 @@ InterRttEstimator::InterRttEstimator(double alpha_arg) {
   this->win_current_ = 1.0;
 
   pthread_mutex_init(&(this->mutex_), NULL);
-  gettimeofday(&(this->start_time_), 0);
-  gettimeofday(&(this->begin_batch_), 0);
+  this->start_time_ = std::chrono::steady_clock::now();
+  this->begin_batch_ = std::chrono::steady_clock::now();
 }
 
 InterRttEstimator::~InterRttEstimator() {
@@ -124,10 +127,10 @@ void InterRttEstimator::onRttUpdate(double rtt) {
 }
 
 void InterRttEstimator::onWindowIncrease(double win_current) {
-  timeval end;
-  gettimeofday(&end, 0);
-  double delay = RaaqmDataPath::getMicroSeconds(end) -
-                 RaaqmDataPath::getMicroSeconds(this->begin_batch_);
+  TimePoint end = std::chrono::steady_clock::now();
+  auto delay =
+      std::chrono::duration_cast<Microseconds>(end - this->begin_batch_)
+          .count();
 
   pthread_mutex_lock(&(this->mutex_));
   this->avg_win_ += this->win_current_ * delay;
@@ -135,14 +138,14 @@ void InterRttEstimator::onWindowIncrease(double win_current) {
   this->win_change_ += delay;
   pthread_mutex_unlock(&(this->mutex_));
 
-  gettimeofday(&(this->begin_batch_), 0);
+  this->begin_batch_ = std::chrono::steady_clock::now();
 }
 
 void InterRttEstimator::onWindowDecrease(double win_current) {
-  timeval end;
-  gettimeofday(&end, 0);
-  double delay = RaaqmDataPath::getMicroSeconds(end) -
-                 RaaqmDataPath::getMicroSeconds(this->begin_batch_);
+  TimePoint end = std::chrono::steady_clock::now();
+  auto delay =
+      std::chrono::duration_cast<Microseconds>(end - this->begin_batch_)
+          .count();
 
   pthread_mutex_lock(&(this->mutex_));
   this->avg_win_ += this->win_current_ * delay;
@@ -150,26 +153,25 @@ void InterRttEstimator::onWindowDecrease(double win_current) {
   this->win_change_ += delay;
   pthread_mutex_unlock(&(this->mutex_));
 
-  gettimeofday(&(this->begin_batch_), 0);
+  this->begin_batch_ = std::chrono::steady_clock::now();
 }
 
 ALaTcpEstimator::ALaTcpEstimator() {
   this->estimation_ = 0.0;
   this->observer_ = NULL;
-  gettimeofday(&(this->start_time_), 0);
+  this->start_time_ = std::chrono::steady_clock::now();
   this->totalSize_ = 0.0;
 }
 
 void ALaTcpEstimator::onStart() {
   this->totalSize_ = 0.0;
-  gettimeofday(&(this->start_time_), 0);
+  this->start_time_ = std::chrono::steady_clock::now();
 }
 
 void ALaTcpEstimator::onDownloadFinished() {
-  timeval end;
-  gettimeofday(&end, 0);
-  double delay = RaaqmDataPath::getMicroSeconds(end) -
-                 RaaqmDataPath::getMicroSeconds(this->start_time_);
+  TimePoint end = std::chrono::steady_clock::now();
+  auto delay =
+      std::chrono::duration_cast<Microseconds>(end - this->start_time_).count();
   this->estimation_ = this->totalSize_ * 8 * 1000000 / delay;
   if (observer_) {
     observer_->notifyStats(this->estimation_);
@@ -189,23 +191,22 @@ SimpleEstimator::SimpleEstimator(double alphaArg, int batching_param) {
   this->number_of_packets_ = 0;
   this->base_alpha_ = alphaArg;
   this->alpha_ = alphaArg;
-  gettimeofday(&(this->start_time_), 0);
-  gettimeofday(&(this->begin_batch_), 0);
+  this->start_time_ = std::chrono::steady_clock::now();
+  this->begin_batch_ = std::chrono::steady_clock::now();
 }
 
 void SimpleEstimator::onStart() {
   this->estimated_ = false;
   this->number_of_packets_ = 0;
   this->total_size_ = 0.0;
-  gettimeofday(&(this->begin_batch_), 0);
-  gettimeofday(&(this->start_time_), 0);
+  this->start_time_ = std::chrono::steady_clock::now();
+  this->begin_batch_ = std::chrono::steady_clock::now();
 }
 
 void SimpleEstimator::onDownloadFinished() {
-  timeval end;
-  gettimeofday(&end, 0);
-  double delay = RaaqmDataPath::getMicroSeconds(end) -
-                 RaaqmDataPath::getMicroSeconds(this->start_time_);
+  TimePoint end = std::chrono::steady_clock::now();
+  auto delay =
+      std::chrono::duration_cast<Microseconds>(end - this->start_time_).count();
   if (observer_) {
     observer_->notifyDownloadTime(delay);
   }
@@ -227,8 +228,8 @@ void SimpleEstimator::onDownloadFinished() {
   } else {
     if (this->number_of_packets_ >=
         (int)(75.0 * (double)this->batching_param_ / 100.0)) {
-      delay = RaaqmDataPath::getMicroSeconds(end) -
-              RaaqmDataPath::getMicroSeconds(this->begin_batch_);
+      delay = std::chrono::duration_cast<Microseconds>(end - this->begin_batch_)
+                  .count();
       // Assuming all packets carry max_packet_size_ bytes of data
       // (8*max_packet_size_ bits); 1000000 factor to convert us to seconds
       if (this->estimation_) {
@@ -247,8 +248,8 @@ void SimpleEstimator::onDownloadFinished() {
   }
   this->number_of_packets_ = 0;
   this->total_size_ = 0.0;
-  gettimeofday(&(this->begin_batch_), 0);
-  gettimeofday(&(this->start_time_), 0);
+  this->start_time_ = std::chrono::steady_clock::now();
+  this->begin_batch_ = std::chrono::steady_clock::now();
 }
 
 void SimpleEstimator::onDataReceived(int packet_size) {
@@ -259,10 +260,10 @@ void SimpleEstimator::onRttUpdate(double rtt) {
   this->number_of_packets_++;
 
   if (number_of_packets_ == this->batching_param_) {
-    timeval end;
-    gettimeofday(&end, 0);
-    double delay = RaaqmDataPath::getMicroSeconds(end) -
-                   RaaqmDataPath::getMicroSeconds(this->begin_batch_);
+    TimePoint end = std::chrono::steady_clock::now();
+    auto delay =
+        std::chrono::duration_cast<Microseconds>(end - this->begin_batch_)
+            .count();
     // Assuming all packets carry max_packet_size_ bytes of data
     // (8*max_packet_size_ bits); 1000000 factor to convert us to seconds
     if (this->estimation_) {
@@ -278,7 +279,7 @@ void SimpleEstimator::onRttUpdate(double rtt) {
     this->alpha_ = this->base_alpha_;
     this->number_of_packets_ = 0;
     this->total_size_ = 0.0;
-    gettimeofday(&(this->begin_batch_), 0);
+    this->begin_batch_ = std::chrono::steady_clock::now();
   }
 }
 
@@ -295,8 +296,8 @@ BatchingPacketsEstimator::BatchingPacketsEstimator(double alpha_arg,
   this->max_packet_size_ = 0;
   this->estimation_ = 0.0;
   this->win_current_ = 1.0;
-  gettimeofday(&(this->begin_batch_), 0);
-  gettimeofday(&(this->start_time_), 0);
+  this->begin_batch_ = std::chrono::steady_clock::now();
+  this->start_time_ = std::chrono::steady_clock::now();
 }
 
 void BatchingPacketsEstimator::onRttUpdate(double rtt) {
@@ -327,25 +328,25 @@ void BatchingPacketsEstimator::onRttUpdate(double rtt) {
 }
 
 void BatchingPacketsEstimator::onWindowIncrease(double win_current) {
-  timeval end;
-  gettimeofday(&end, 0);
-  double delay = RaaqmDataPath::getMicroSeconds(end) -
-                 RaaqmDataPath::getMicroSeconds(this->begin_batch_);
+  TimePoint end = std::chrono::steady_clock::now();
+  auto delay =
+      std::chrono::duration_cast<Microseconds>(end - this->begin_batch_)
+          .count();
   this->avg_win_ += this->win_current_ * delay;
   this->win_current_ = win_current;
   this->win_change_ += delay;
-  gettimeofday(&(this->begin_batch_), 0);
+  this->begin_batch_ = std::chrono::steady_clock::now();
 }
 
 void BatchingPacketsEstimator::onWindowDecrease(double win_current) {
-  timeval end;
-  gettimeofday(&end, 0);
-  double delay = RaaqmDataPath::getMicroSeconds(end) -
-                 RaaqmDataPath::getMicroSeconds(this->begin_batch_);
+  TimePoint end = std::chrono::steady_clock::now();
+  auto delay =
+      std::chrono::duration_cast<Microseconds>(end - this->begin_batch_)
+          .count();
   this->avg_win_ += this->win_current_ * delay;
   this->win_current_ = win_current;
   this->win_change_ += delay;
-  gettimeofday(&(this->begin_batch_), 0);
+  this->begin_batch_ = std::chrono::steady_clock::now();
 }
 
 }  // end namespace protocol
old mode 100755 (executable)
new mode 100644 (file)
index b889efe..91964ec
 
 #pragma once
 
-#include <unistd.h>
-
 #include <hicn/transport/protocols/download_observer.h>
 #include <hicn/transport/protocols/raaqm_data_path.h>
 
+#include <chrono>
+
 #define BATCH 50
 #define KV 20
 #define ALPHA 0.8
@@ -31,6 +31,9 @@ namespace protocol {
 
 class IcnRateEstimator {
  public:
+  using TimePoint = std::chrono::steady_clock::time_point;
+  using Microseconds = std::chrono::microseconds;
+
   IcnRateEstimator(){};
 
   virtual ~IcnRateEstimator(){};
@@ -51,8 +54,8 @@ class IcnRateEstimator {
     this->observer_ = observer;
   };
   IcnObserver *observer_;
-  struct timeval start_time_;
-  struct timeval begin_batch_;
+  TimePoint start_time_;
+  TimePoint begin_batch_;
   double base_alpha_;
   double alpha_;
   double estimation_;
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index b12282f..8cbfaca
 #undef TRANSPORT_EXPECT_TRUE
 #undef TRANSPORT_EXPECT_FALSE
 
+#ifndef _WIN32
 #define TRANSPORT_EXPECT_TRUE(x) __builtin_expect((x), 1)
-#define TRANSPORT_EXPECT_FALSE(x) __builtin_expect((x), 0)
\ No newline at end of file
+#define TRANSPORT_EXPECT_FALSE(x) __builtin_expect((x), 0)
+#else
+#define TRANSPORT_EXPECT_TRUE(x) (x)
+#define TRANSPORT_EXPECT_FALSE(x) (x)
+#endif
\ No newline at end of file
old mode 100755 (executable)
new mode 100644 (file)
index a3ec21c..d86e764
 
 #include <hicn/transport/portability/portability.h>
 
+#ifndef _WIN32
 #include <arpa/inet.h>
+#else
+#include <hicn/transport/portability/win_portability.h>
+#endif
+
 #include <cstring>
 
 namespace utils {
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 0ab1a60..e75e85b
@@ -18,6 +18,9 @@
  * The code in this file if adapated from the IOBuf of folly:
  * https://github.com/facebook/folly/blob/master/folly/io/IOBuf.h
  */
+#ifdef _WIN32
+#include <hicn/transport/portability/win_portability.h>
+#endif
 
 #include <hicn/transport/utils/membuf.h>
 
old mode 100755 (executable)
new mode 100644 (file)
index 944237e..5a10d41
@@ -35,8 +35,9 @@
 #include <type_traits>
 #include <vector>
 
-// Ignore shadowing warnings within this file, so includers can use -Wshadow.
+#ifndef _WIN32
 TRANSPORT_GNU_DISABLE_WARNING("-Wshadow")
+#endif
 
 namespace utils {
 
old mode 100755 (executable)
new mode 100644 (file)
index c369f7e..9fda214
@@ -47,9 +47,7 @@ class ObjectPool {
 
   ObjectPool() : destructor_(false) {}
 
-  ~ObjectPool() {
-    destructor_ = true;
-  }
+  ~ObjectPool() { destructor_ = true; }
 
   std::pair<bool, Ptr> get() {
     if (object_pool_.empty()) {
index 579b08a..005236c 100644 (file)
@@ -22,7 +22,9 @@
 #include <hicn/transport/utils/signer.h>
 
 extern "C" {
+#ifndef _WIN32
 TRANSPORT_CLANG_DISABLE_WARNING("-Wextern-c-compat")
+#endif
 #include <hicn/hicn.h>
 #include <parc/security/parc_PublicKeySigner.h>
 #include <parc/security/parc_Security.h>
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 33e5cda..009a944
@@ -35,7 +35,7 @@ class SpinLock : private std::atomic_flag {
     SpinLock& spin_lock_;
   };
 
-  SpinLock() : std::atomic_flag(false) {}
+  SpinLock() { clear(); }
 
   void lock() {
     // busy-wait
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 93efe06..49cbe3b 100644 (file)
@@ -21,7 +21,9 @@
 #include <hicn/transport/utils/verifier.h>
 
 extern "C" {
+#ifndef _WIN32
 TRANSPORT_CLANG_DISABLE_WARNING("-Wextern-c-compat")
+#endif
 #include <hicn/hicn.h>
 #include <parc/security/parc_CertificateFactory.h>
 #include <parc/security/parc_InMemoryVerifier.h>
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)