A server and client library for the IEC 61850/MMS communication protocol written in C