About the net example

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:

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

The net example consists of the following source files:

Page top