Use the message parsing code in the listener

Signed-off-by: John Else <john.else@citrix.com>