JANUS DOMAIN: Difference between revisions

From m204wiki
Jump to navigation Jump to search
 
(Automatically generated page update)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:JANUS DOMAIN}}
{{DISPLAYTITLE:JANUS DOMAIN}}
<span class="pageSubtitle"><section begin="desc" />Specify domain for Janus ports<section end="desc"/></span>
<span class="pageSubtitle">Specify domain for Janus ports</span>


This specifies the domain to the Model 204 online.
This specifies the domain to the Model 204 online.
Line 16: Line 16:
<ul>
<ul>
<li>the <var>[[JANUS DEFINEREMOTE]]</var> command
<li>the <var>[[JANUS DEFINEREMOTE]]</var> command
<li>the <var>[[JANUS DEFINE]]</var> command for a <var>[[JANUS DEFINE#type|CLSOCK]]</var> port
<li>the <var>[[JANUS DEFINE]]</var> command for a <var>[[JANUS DEFINE#type|CLSOCK]]</var> or <var>[[JANUS DEFINE#type|DEBUGGERCLIENT]]</var> port
<li>the <var>[[New (Socket constructor)|New]]</var> constructor in the <var>[[Socket class|Socket]]</var> class
<li>the <var>[[New (Socket constructor)|New]]</var> constructor in the <var>[[Socket class|Socket]]</var> class
<li>the <var>[[New (HttpRequest constructor)|New]]</var> constructor in the <var>[[HttpRequest class|HttpRequest]]</var> class
<li>the <var>[[New (HttpRequest constructor)|New]]</var> constructor in the <var>[[HttpRequest class|HttpRequest]]</var> class
Line 43: Line 43:
The correct value to use in the <var>JANUS DOMAIN</var> command is usually the value to which <code>DOMAINORIGIN</code> is set in file <code>TCPIP DATA</code> (under VM) or <code>xxxxxx.TCPIP.DATA</code> (under MVS).
The correct value to use in the <var>JANUS DOMAIN</var> command is usually the value to which <code>DOMAINORIGIN</code> is set in file <code>TCPIP DATA</code> (under VM) or <code>xxxxxx.TCPIP.DATA</code> (under MVS).


==See also==
<ul>
<li>[[List_of_Janus_commands|Janus command list]]
</ul>


See: [[List_of_Janus_commands|Janus command list]]
[[Category:Janus commands|JANUS DOMAIN]]
[[Category:Janus commands|JANUS DOMAIN]]

Latest revision as of 17:32, 16 April 2013

Specify domain for Janus ports

This specifies the domain to the Model 204 online.

Syntax

JANUS DOMAIN domainname


Where domainname is the Internet domain name. The JANUS DOMAIN command only has an effect when running in an IBM (TCPTYPE=IBM) TCP/IP environment. If domainname is left blank, the JANUS DOMAIN command displays the current domain name.

JANUS DOMAIN sirius-software.com

In the above example the domain name is set to sirius-software.com.

The JANUS DOMAIN command need only be executed if your site uses IBM TCP/IP and you wish to refer to host names without the domain name qualifiers. Host names are referenced in:

For example, to retrieve a page on host hockey.sirius-software.com one could write:

%req is object httpRequest ... %req = new %req:host ='hockey.sirius-software.com' ...

However, if the domain name is set to sirius-software.com in the Online in which this request is running, the above request could also be written as:

%req is object httpRequest ... %req = new %req:host ='hockey' ...

The correct value to use in the JANUS DOMAIN command is usually the value to which DOMAINORIGIN is set in file TCPIP DATA (under VM) or xxxxxx.TCPIP.DATA (under MVS).

See also