Programming guideline of WinDom
So the AV protocol is a set of AES messages exchange between the
clients and the server. There are the messages sent from the serveur
to the clients, they have the VA_ suffix, and there are the message
sent from a client to the server, they have the AV_ suffix. Almost
messages have an answer. For example, the AV_STARTPROG message, that
is a request from a client to the server to exec an application, have
an answer VA_PROGSTART meanning if the application was correctly
launched or not. So there are mainly two king of messages:
two king of messages.
- a request, a message sent by the server to a client or sent
by a client to the server to perform an action,
- an answer, that is a message anwser of a request
The requests are:
- protocol initialization message,
- action message.
Before to sent a request to a server, a client must be declared to
the server that is performed by the AvInit() function. When the
client finish, the AV session opened with AvInit() must be closed
with the AvExit() function.
Send a message to the server:
The ApplWrite() and AvWaitfor() functions allow the client to send
efficiently a message to the AV-server. The ApplWrite() just send a
message and the AvWaitfor() waits for an answer form the server.
Handle messages from the AV server:
A client can declare to the AV server the actions that it can handle.
In this case, the client can receive requests from the server that it
have to handle.