The net example presents a basic case of network interaction using Berkeley sockets.
The example consists of the net_client and net_server entities bound by a TCP socket using a loopback interface. Standard POSIX functions are used in the code of the entities.
In KasperskyOS, a special entity named vfs_entity is used for interfacing the network.
To connect the net_client and net_server entities with a socket through a loopback, they must use the same network stack instance. This means that they must interact with the "shared" entity named vfs_entity.

To build the net example, you must do the following:
net_client and net_server entities must be connected to vfs_entity.net_client and net_server entities to the vfs_remote library.The net example consists of the following source files:
net_client.c – implementation of the net_client entitynet_server.c – implementation of the net_server entitynet_server.edl, net_client.edl – static descriptionsinit.yaml – init description.