KasperskyOS Community Edition 1.0

net2_with_separate_vfs example

This example demonstrates the special features of a solution in which an entity uses standard POSIX functions to interact with an external server.

The net2_with_separate_vfs example is a modified net_with_separate_vfs example. In contrast to the net_with_separate_vfs example, in this example an entity interacts over the network with an external server rather than another entity.

This example consists of the Client entity running in KasperskyOS on QEMU and the Server program running in a Linux host operating system. The Client entity and Server process are bound by a TCP socket. Standard POSIX functions are used in the code of the Client entity.

To connect the Client entity and the Server process using a socket, the Client entity must interact with NetVfs entity. During the build, the NetVfs entity is linked to a network driver that supports interaction with the Server process running in Linux.

To correctly connect the Client entity to the NetVfs entity, the Env entity must also be included in the solution.

The CMake system, which is included with KasperskyOS Community Edition, is used to build and run the example.

Example files

The code of the example and build scripts are available at the following path:

/opt/KasperskyOS-Community-Edition-<version>/examples/net2_with_separate_vfs

Building and running example

See the Building and running examples section.