- Fixed little typo for being compliant with the code style
- Removed include statements of deprecated library "ccnx-portal"
- added level of optimization of 3 by default
Change-Id: Id353e58fa1e7eeeb90bdf19ec7fd921876ab12c4
Signed-off-by: Mauro Sardara <[email protected]>
include_directories(SYSTEM ${Boost_INCLUDE_DIR})
set(CMAKE_VERBOSE_MAKEFILE off)
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -fpermissive")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -fpermissive -O3")
set(LIBRARIES
${CCNX_PORTAL_LIBRARIES}
- libboost-system-dev
- libparc
- libccnx-common
+- libccnx-transport-rta
- long-bow
Build the library
For building the library, from the root folder of the project:
```bash
+ $ git clone -b libicnet/master https://gerrit.fd.io/r/cicn libicnet
+ $ cd libicnet
$ mkdir build && cd build
$ cmake ..
$ make
```
+The library should be compiled with a level of optimization >= 2, in order to achieve better performances. The CMakeFile.txt
+already specifies a level of optimization of 3. To change it (for debugging) just modify the CMakeFile.txt.
+
If you do not want to build the tools:
```bash
#include <ccnx/common/ccnx_Interest.h>
#include <ccnx/common/ccnx_ContentObject.h>
#include <parc/security/parc_Security.h>
-#include <ccnx/api/ccnx_Portal/ccnx_Portal.h>
-#include <ccnx/api/ccnx_Portal/ccnx_PortalRTA.h>
#include <ccnx/common/codec/schema_v1/ccnxCodecSchemaV1_PacketEncoder.h>
};
#include <future>
extern "C" {
-#include <ccnx/api/ccnx_Portal/ccnx_Portal.h>
-#include <ccnx/api/ccnx_Portal/ccnx_PortalRTA.h>
#include <ccnx/api/control/cpi_Acks.h>
#include <ccnx/common/ccnx_ContentObject.h>
#include <parc/security/parc_Security.h>
void VegasTransportProtocol::increaseWindow() {
double max_window_size = -1;
socket_->getSocketOption(MAX_WINDOW_SIZE, max_window_size);
- if (current_window_size_ < max_window_size) // don't expand window above max level
- {
+ if (current_window_size_ < max_window_size) {
current_window_size_++;
socket_->setSocketOption(CURRENT_WINDOW_SIZE, current_window_size_);
}