A flexible messaging library for high performance networks