This simple server does not retrieve data from other resources, instead the OPC item data can be directly defined in the server.
Listing 13 shows the code of a server that is based on the BasicXDAServer class:
language=C
This server defines two OPC items, which can then be accessed by OPC XML-DA clients.