About the net2 example

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

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

To connect the net_client entity and the net_server process using a socket, the net_client entity must interact with vfs_entity. vfs_entity is already linked to a network driver that supports interaction with the net_server process running in Linux.

To build the net2 example, you need to:

  1. In the init description, indicate that the net_client entity must be connected to vfs_entity.
  2. Link the net_client entity to the vfs_remote library.

The net2 example consists of the following source files:

Page top