tcp_session: First implementation of message decoding