TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-320
#REPLYPREFIX Built-In Variable
#REPLYPREFIX Built-In Variable
Use #REPLYPREFIX to examine the current value of the reply prefix, which can be an
integer or empty. The #REPLYPREFIX function adds a prefix to a reply when TACL
functions as a server. For additional information about TACL as a server and an
example showing the use of #REPLYPREFIX, see the TACL Programming Guide.
Result
#REPLYPREFIX returns the current value of the reply prefix.
Considerations
•
The #REPLYPREFIX function is used when TACL functions as a server. For
examples of TACL servers, refer to the TACL Programming Guide.
•
When you first log on, #REPLYPREFIX is initialized to a null value.
•
TACL never changes the value of #REPLYPREFIX unless instructed to do so.
•
When a Pathway requester sends a message to a server, the server must return a
reply message that includes a reply prefix. The server can use this reply prefix to
indicate what is in the rest of the message. When the requester receives the
message, it can extract information as indicated by the value of the reply prefix.
•
Use #PUSH #REPLYPREFIX (or PUSH #REPLYPREFIX) to save a copy of the
current reply prefix.
•
Use #POP #REPLYPREFIX (or POP #REPLYPREFIX) to restore the reply prefix
from the last copy pushed.
•
Use #SET #REPLYPREFIX (or SET VARIABLE #REPLYPREFIX) to set an
unsigned 16-bit integer reply prefix. If TACL is in server operation and
#REPLYPREFIX contains a 16-bit integer, each reply to an unqualified (control)
opener of TACL is prefixed by that number.
The syntax of #SET #REPLYPREFIX is:
num
is a 16-bit integer that can be decoded by a Pathway SEND statement. If you
omit num, you do not have a reply prefix.
#REPLYPREFIX
#SET #REPLYPREFIX [ num ]