About the ping example
The ping example includes two entities: Client
and Server
.
The Server
entity provides two identical Ping
and Pong
methods that receive a number and return a modified number:
Ping(in UInt32 value, out UInt32 result);
Pong(in UInt32 value, out UInt32 result);
The Client
entity calls both of these methods in a different sequence. If the method call is denied by the solution security policy, the Failed to call...
message is displayed.
The transport part of the ping example is virtually identical to its counterpart in the echo example. The only difference is that the ping example uses two methods (Ping
and Pong
) instead of one.
Use of IPC transport is briefly examined in the ping example because it was already examined in detail in the comments to the echo example.
The ping example implements a solution security policy (security.psl
) based on the Flow security model.
Components of the ping example
The ping example consists of the following files:
client/src/client.c
resources/edl/Client.edl
server/src/server.c
resources/edl/Server.edl
,resources/cdl/Control.cdl
,resources/idl/Connection.idl
init.yaml
security.psl