MASTER (JANUS DEFINE parameter): Difference between revisions
m (1 revision) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:MASTER}} | {{DISPLAYTITLE:MASTER}} | ||
<span class="pageSubtitle"><section begin="desc" /><section end="desc" /></span> | <span class="pageSubtitle"><section begin="desc" />Set as default 'outgoing' port<section end="desc" /></span> | ||
MASTER 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]]. | MASTER 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 that this is the default port for '''outgoing''' connections to remote servers. A single MASTER port will serve as the access route to multiple external server address spaces. | This parameter specifies that this is the default port for '''outgoing''' connections to remote servers. A single MASTER port will serve as the access route to multiple external server address spaces. | ||
Line 14: | Line 12: | ||
Note that the port number is irrelevant for outgoing purposes, though it must still be specified. | Note that the port number is irrelevant for outgoing purposes, though it must still be specified. | ||
<li> The servers may host server sockets for Version 6.6 and later ''[[Janus Sockets]]'' client (CLSOCK) calls. server sockets for Version 6.6 and later ''[[Janus Sockets]]'' client (CLSOCK) calls. A single MASTER port will serve as the access route to multiple external servers. | <li> The servers may host server sockets for Version 6.6 and later ''[[Janus Sockets]]'' client (CLSOCK) calls. server sockets for Version 6.6 and later ''[[Janus Sockets]]'' client (CLSOCK) calls. A single MASTER port will serve as the access route to multiple external servers. | ||
A port defined as MASTER can be accessed on a ''[[Janus Sockets]]'' connection request without specifying its port name on the $function or object method that establishes the connection to a remote server socket. The socket port name parameter on $SOCK_CONN, on the Socket object New constructor, and on the HTTP Helper Get and Post methods default to the MASTER port, if any. | A port defined as MASTER can be accessed on a ''[[Janus Sockets]]'' connection request without specifying its port name on the $function or object method that establishes the connection to a remote server socket. The socket port name parameter on $SOCK_CONN, on the Socket object New constructor, and on the HTTP Helper Get and Post methods default to the MASTER port, if any. | ||
</ul> | </ul> | ||
Multiple ports may be DEFINEd and STARTed with the MASTER parameter specified, but the one used in any particular instance will not be predictable. | Multiple ports may be DEFINEd and STARTed with the MASTER parameter specified, but the one used in any particular instance will not be predictable. | ||
MASTER is valid only for ''[[Janus Sockets]]'' client (CLSOCK), OPENSERV, or SDS ports. | MASTER is valid only for ''[[Janus Sockets]]'' client (CLSOCK), OPENSERV, or SDS ports. | ||
==Examples== | |||
<p class="code"> JANUS DEFINE CLMASTER * CLSOCK 5 TIMEOUT 240 REMOTE * * MASTER SSL 0 SSLOPT - | |||
SSLMAXCERTL 4096 SSLBSIZE 32767 LINEND 0D0A | |||
</p> | |||
<p class="caption">An SSL-protected, client socket MASTER port.</p> | |||
==References== | ==References== |
Revision as of 21:46, 11 March 2011
<section begin="desc" />Set as default 'outgoing' port<section end="desc" />
MASTER 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 that this is the default port for outgoing connections to remote servers. A single MASTER port will serve as the access route to multiple external server address spaces.
- The servers may be other Model 204 servers or may be Sybase/Microsoft servers that are to receive Janus Open Client function calls. Users accessing the Model 204 address space over an OPENSERVER port will use the same port they came in on for any outgoing Janus Open Client connections. Users accessing the Model 204 address space with other threads (for example, 3270 or web based applications) must have a MASTER port defined in order for the Janus Open Client functions to establish connections to other address spaces. Note that the port number is irrelevant for outgoing purposes, though it must still be specified.
- The servers may host server sockets for Version 6.6 and later Janus Sockets client (CLSOCK) calls. server sockets for Version 6.6 and later Janus Sockets client (CLSOCK) calls. A single MASTER port will serve as the access route to multiple external servers. A port defined as MASTER can be accessed on a Janus Sockets connection request without specifying its port name on the $function or object method that establishes the connection to a remote server socket. The socket port name parameter on $SOCK_CONN, on the Socket object New constructor, and on the HTTP Helper Get and Post methods default to the MASTER port, if any.
Multiple ports may be DEFINEd and STARTed with the MASTER parameter specified, but the one used in any particular instance will not be predictable.
MASTER is valid only for Janus Sockets client (CLSOCK), OPENSERV, or SDS ports.
Examples
JANUS DEFINE CLMASTER * CLSOCK 5 TIMEOUT 240 REMOTE * * MASTER SSL 0 SSLOPT - SSLMAXCERTL 4096 SSLBSIZE 32767 LINEND 0D0A
References
See: List of Janus commands | List of JANUS DEFINE parameters.