
VTCPD Messages
P0602483 Ver: 03.41 Page 47
The default setting does not pass the header to the application. VTCPD strips the
header before passing the message, and prepends the header before sending to the
host. The command line option -m h is specified to instruct VTCPD not to separate
the header from the body, and to pass the header to the application. For example:
• -f a:4:1:4 is equivalent to -f l:4 and means that the message header
contains only the length field of 4 bytes in ASCII format, and the header is
stripped when passed to the application.
• -f l:2:1:8 -m h means that the message header contains 8 bytes, the binary
length field of 2 bytes is located at the beginning of the header, and the header is
passed to the application.
• If the message body contains 10 bytes and the header has 8 bytes, then depending
on the options, the contents of the lenfld and the number of bytes passed
to/from the application are as follows:
-f Option
Action strip header
retain header
(
-m h)
{l|a}:lf send to host 18 bytes 18 bytes
send to application 10 bytes 18 bytes
value of lf 10 10
{L|A}:lf send to host 18 bytes 18 bytes
send to application 10 bytes 18 bytes
value of lf 18 18
Kommentare zu diesen Handbüchern