zephyr/samples/net/sockets/tcp
Jukka Rissanen 5c3fa85bc8 samples: net: Change to use CONFIG_POSIX_API
Change the sample applications that use network socket API to
use the POSIX_API config because the NET_SOCKETS_POSIX_NAMES is
deprecated. Convert also the zsock_ API calls to plain BSD
socket API calls when applicable.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-27 13:40:13 -05:00
..
src samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
CMakeLists.txt
overlay-debug.conf
overlay-e1000.conf ethernet: remove defconfig/proj setting of ethernet drivers 2022-08-15 14:32:45 +02:00
overlay-log-extra.conf
overlay-log-extra2.conf
overlay-log-pkt.conf
overlay-log.conf
overlay-max-stacks.conf
overlay-nommu.conf
overlay-slip.conf
prj.conf samples: net: Change to use CONFIG_POSIX_API 2024-03-27 13:40:13 -05:00
README.rst samples: net: doc: Use new Sphinx extension to document networking samples 2023-09-19 15:22:59 +01:00
sample.yaml samples: Switch from NEWLIB_LIBC to REQUIRES_FULL_LIBC 2023-10-25 08:32:06 +02:00

.. zephyr:code-sample:: sockets-tcp-sample
   :name: TCP sample for TTCN-3 based sanity check
   :relevant-api: bsd_sockets

   Use TTCN-3 to validate the functionality of the TCP stack.

Overview
********

This application is used together with the TTCN-3 based sanity check
to validate the functionality of the TCP.

Building, Running and executing TTCN-3 based Sanity Check for TCP
*****************************************************************

Compile and start the `net-test-tools`_:

.. code-block:: console

   ./autogen.sh
   make
   ./loop-slipcat.sh

Build the TCP sample app:

.. code-block:: console

   cd samples/net/sockets/tcp
   mkdir build && cd build
   cmake -DBOARD=qemu_x86 -DEXTRA_CONF_FILE="overlay-slip.conf" ..
   make run

Compile and run the TCP sanity check `net-test-suites`_:

.. code-block:: console

   . titan-install.sh
   . titan-env.sh
   cd src
   . make.sh
   ttcn3_start test_suite tcp2_check_3_runs.cfg

.. _`net-test-tools`: https://github.com/intel/net-test-tools
.. _`net-test-suites`: https://github.com/intel/net-test-suites