Skip to content
Snippets Groups Projects
Commit 00d0d2d0 authored by Daniel Müller's avatar Daniel Müller :speech_balloon:
Browse files

Add doxygen docu for gitlab-pages

- Build and update doxygen documentation and deploy to gitlab-pages.
- Also run the tests (without analysis for now)
parent 764d460f
No related branches found
No related tags found
No related merge requests found
Pipeline #69227 passed
image: alpine
variables:
GIT_SUBMODULE_STRATEGY: recursive
pages:
script:
- apk update && apk add doxygen ttf-freefont graphviz
- doxygen
- mv docs/html/ public/
artifacts:
paths:
- public
only:
- master
run tests:
script:
- apk update && apk add g++ make cmake
- cd build
- cmake ..
- make test
only:
- master
\ No newline at end of file
......@@ -830,6 +830,7 @@ WARN_LOGFILE =
# Note: If this tag is empty the current directory is searched.
INPUT = src
INPUT += inc
INPUT += README.md
# This tag can be used to specify the character encoding of the source files
......
......@@ -13,6 +13,12 @@ Instead Ip-Addresses are simply specified as `string` and ports as `uint16_t`
(in host byte order). All the conversions and Ipv4/Ipv6 differences are handled
behind the scenes.
## Documentation
Doxygen documentation of the public API is available on [gitlab-pages](https://istddmue2.h-da.io/netlib).
Some examples using the library are available in the `example` subdirectory.
## Usage
This library can be used in many different ways. The most simple of which would
......
......@@ -57,7 +57,7 @@ TEST_CASE("Test IpAddr automatic version") {
bool raw_ip_equal = true;
for (auto i = 0; i < 16; i++)
{
if (ipv6.raw_addr.v6.__in6_u.__u6_addr8[i] != addrV6bytes[i] )
if (((uint8_t*)&ipv6.raw_addr.v6)[i] != addrV6bytes[i] )
raw_ip_equal = false;
}
......@@ -185,7 +185,7 @@ TEST_CASE("Test SockAddr from raw_sockaddr") {
raw6.sin6_family = AF_INET6;
raw6.sin6_port = htons(1337);
memcpy(&raw6.sin6_addr.__in6_u.__u6_addr8[0], ip6_bytes, 16);
memcpy(&raw6.sin6_addr, ip6_bytes, 16);
SockAddr sa6((sockaddr*) &raw6, IpAddr::Type::V6);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment