# Re: Input items vs Output items

**URL:** <https://www.ruby-forum.com/t/re-input-items-vs-output-items/241604>\
**Category:** GNU Radio\
**Created:** [April 18, 2015, 8:23pm UTC](https://www.ruby-forum.com/t/re-input-items-vs-output-items/241604 "2015-04-18T20:23:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [April 18, 2015, 8:23pm UTC](https://www.ruby-forum.com/t/re-input-items-vs-output-items/241604/1 "2015-04-18T20:23:27Z")

</div>

Thanks for the HDLC tip. A neat bit of code. I have not worked with  
message  
ports before. I have looked at the examples and managed to get PDUs  
displayed in the console as hex dumps using the debug block, but how can  
I  
do things with them?

My own block takes the packet data, extracts the payload, adds a  
timestamp  
to the front, saves to an ascii file and optionally prints and/or sends  
over  
the network.

Is there a simple message block example anywhere?

Mike
