JANUS DOMAIN

From m204wiki
Revision as of 21:40, 28 February 2011 by Admin (talk | contribs) (Created page with "{{DISPLAYTITLE:JANUS DOMAIN}} <span class="pageSubtitle"><section begin="desc" />Specify domain for Janus ports<section end="desc"/></span> This specifies the domain to the Mode...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<section begin="desc" />Specify domain for Janus ports<section end="desc"/>

This specifies the domain to the Model 204 online.

JANUS DOMAIN domainname

JANUS DOMAIN command syntax

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 the JANUS DEFINEREMOTE command, the JANUS DEFINE command for a CLSOCK port, and the “connect” $functions in Janus Sockets. These include, the $sock_conn function and the New method for the Socket class. Host names are also used in the Page and Host methods of the HTTPRequest class.

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:

v%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: Janus command list