LINEND (JANUS DEFINE parameter): Difference between revisions
m (1 revision) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:LINEND}} | {{DISPLAYTITLE:LINEND}} | ||
<span class="pageSubtitle"><section begin="desc" />[hexstr | NONE]<section end="desc" /></span> | <span class="pageSubtitle"><section begin="desc" />LINEND [hexstr | NONE] -- set or disable line-end character for socket port.<section end="desc" /></span> | ||
LINEND is a parameter on [[JANUS DEFINE]], which defines and sets characteristics of a Janus port. See the [[JANUS DEFINE#parmlist|List of JANUS DEFINE parameters]]. | LINEND is a parameter on [[JANUS DEFINE]], which defines and sets characteristics of a Janus port. See the [[JANUS DEFINE#parmlist|List of JANUS DEFINE parameters]]. | ||
This parameter specifies the hex value of a string to be sent by ''[[Janus Sockets]]'' at the end of each "line;" that is, appended to the string sent by the $SOCK_SENDLN functions or after each output line captured on the socket. | This parameter specifies the hex value of a string to be sent by ''[[Janus Sockets]]'' at the end of each "line;" that is, appended to the string sent by the $SOCK_SENDLN functions or after each output line captured on the socket. | ||
Line 13: | Line 11: | ||
Note that the specified string is sent untranslated, regardless of the CHAR or BINARY setting of the socket. For example, the following specifies that the byte pair which is ASCII carriage return and linefeed should be appended to each $SOCK_SENDLN call or User Language print line: | Note that the specified string is sent untranslated, regardless of the CHAR or BINARY setting of the socket. For example, the following specifies that the byte pair which is ASCII carriage return and linefeed should be appended to each $SOCK_SENDLN call or User Language print line: | ||
<p class="code"> LINEND 0D0A | |||
<p class="code"> JANUS DEFINE CLMASTER * CLSOCK 5 TIMEOUT 240 REMOTE * * MASTER SSL 0 SSLOPT - | |||
SSLMAXCERTL 4096 SSLBSIZE 32767 LINEND 0D0A | |||
</p> | </p> | ||
<p class="caption">An SSL-protected, client socket port with LINEND specified.</p> | |||
The LINEND value for a socket can be changed using $SOCK_SET. | The LINEND value for a socket can be changed using $SOCK_SET. |
Revision as of 20:29, 11 March 2011
<section begin="desc" />LINEND [hexstr | NONE] -- set or disable line-end character for socket port.<section end="desc" />
LINEND is a parameter on JANUS DEFINE, which defines and sets characteristics of a Janus port. See the List of JANUS DEFINE parameters.
This parameter specifies the hex value of a string to be sent by Janus Sockets at the end of each "line;" that is, appended to the string sent by the $SOCK_SENDLN functions or after each output line captured on the socket.
The default is LINEND 0D; 0D is the hexadecimal representation of the carriage return, both in EBCDIC and in ASCII.
You can specify LINEND NONE, which means that a LINEND value must be set with $SOCK_SET before the $SOCK_SENDLN function is called.
Note that the specified string is sent untranslated, regardless of the CHAR or BINARY setting of the socket. For example, the following specifies that the byte pair which is ASCII carriage return and linefeed should be appended to each $SOCK_SENDLN call or User Language print line:
JANUS DEFINE CLMASTER * CLSOCK 5 TIMEOUT 240 REMOTE * * MASTER SSL 0 SSLOPT - SSLMAXCERTL 4096 SSLBSIZE 32767 LINEND 0D0A
The LINEND value for a socket can be changed using $SOCK_SET.
Valid only for CLSOCK and SRVSOCK ports.
References
See: List of Janus commands | List of JANUS DEFINE parameters.