network message encapsulation library