User data printing in ra()

Carter Bullard carter at qosient.com
Sat Feb 3 12:24:26 EST 2001


Gentle people,
   I did finally implement user data buffer printing in ra().
It will be in the 'Y' release that I'll put up on Sunday.
There were a lot of considerations, especially with
regard to the RA_FIELD_DELIMITER directives.  So I've
come up with this strategy. 

Option format:
   -d <numbytes>                /* print numbytes of both src and dst
buffer */
   -d [sd]<numbytes>            /* print numbytes of either src or dst
*/
   -d s<snumbytes>:d<dnumbytes> /* print snumbytes of src buffer and
                                         dnumbytes of dst buffer */

   Examples are:
      ra -d 32
      ra -d d16
      ra -d s32:d8

Of course, the existing "-e [ascii|encode64]" option specifies
which format to use when dumping data.  Default is ASCII.

If there are user data buffers in the ra record, we'll print
out up to this number of bytes.  The output is added to
the end of the normal ra() output line.  Of course
with label support and RA_FIELD_DELIMITER support.

The output format is:

State       SrcData                   DstData
 FIN   s[n]="src buffer data" d[n]="dst buffer data"

Where n is the number of bytes printed.  This way, if the
RA_FIELD_DELIMITER is in the buffer, you can figure out
how to ignore it.

If anyone has opinions, comments, etc.... please send them
soon!!!

Thanks

Carter

Carter Bullard
QoSient, LLC
300 E. 56th Street, Suite 18K
New York, New York  10022

carter at qosient.com
Phone +1 212 813-9426
Fax   +1 212 813-9426
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3699 bytes
Desc: not available
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20010203/20b7e9ab/attachment.bin>


More information about the argus mailing list