NAV

Import the package

You can import pid-network-utilities as usual with PID. In the root CMakelists.txt file of your package, after the package declaration you have to write something like:

PID_Dependency(pid-network-utilities)

It will try to install last version of the package.

If you want a specific version (recommended), for instance the currently last released version:

PID_Dependency(pid-network-utilities VERSION 3.3)

Components

pid-udp-server

This is a shared library (set of header files and a shared binary object).

include directive :

Not specified (dangerous). You can try including any or all of these headers:

#include <pid/udp_server.h>

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	pid-udp-server
				PACKAGE	pid-network-utilities)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	pid-udp-server
				PACKAGE	pid-network-utilities)

pid-udp-client

This is a shared library (set of header files and a shared binary object).

include directive :

Not specified (dangerous). You can try including any or all of these headers:

#include <pid/udp_client.h>

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	pid-udp-client
				PACKAGE	pid-network-utilities)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	pid-udp-client
				PACKAGE	pid-network-utilities)

pid-sync-tcp-server

This is a shared library (set of header files and a shared binary object).

include directive :

Not specified (dangerous). You can try including any or all of these headers:

#include <pid/synchronous_tcp_server.h>

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	pid-sync-tcp-server
				PACKAGE	pid-network-utilities)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	pid-sync-tcp-server
				PACKAGE	pid-network-utilities)

pid-sync-tcp-client

This is a shared library (set of header files and a shared binary object).

include directive :

Not specified (dangerous). You can try including any or all of these headers:

#include <pid/synchronous_tcp_client.h>

CMake usage :

In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:

PID_Component_Dependency(
				COMPONENT	your component name
				DEPEND	pid-sync-tcp-client
				PACKAGE	pid-network-utilities)

In the CMakeLists.txt files of libraries exporting the dependency :

PID_Component_Dependency(
				COMPONENT	your component name
				EXPORT	pid-sync-tcp-client
				PACKAGE	pid-network-utilities)