C library implementation of AMP (Asynchronous Messaging Protocol)