[datagram] make usage of new message interface