EDL descriptions
The net_client
and net_server
entities have trivial EDL descriptions:
net_client.edl
/* You only have to indicate the name of the net_client entity. */
entity net_client
net_server.edl
/* You only have to indicate the name of the net_server entity. */
entity net_server
Init description
In the init description, you need to specify that the following three entities must be started when the solution is run: net_client
, net_server
and vfs_entity
, and that two connections must be created: between net_client
and vfs_entity
, and between net_server
and vfs_entity
. Both connections must be named VFS
. vfs_entity
is located in the vfs directory, therefore it is specified as vfs.vfs_entity
in the init description. For more details, refer to "Considerations for working with a network".
init.yaml
entities:
- name: net_client
connections:
- target: vfs.vfs_entity
id: VFS
- name: net_server
connections:
- target: vfs.vfs_entity
id: VFS
- name: vfs.vfs_entity
Please note that the connection of entities has a "direction". vfs_entity
is indicated as - target
because it is queried by other entities (net_client
and net_server
). The net_client
and net_server
entities call vfs_entity
methods and are therefore client entities. In this case, vfs_entity
is a server entity.
The second part of the Guide examines client-server interactions between entities in more detail.
Page top