AGS_USE_IPV6

This variable enables the use of IPv6 addressing.

By default, this variable is set to 0, which means that IPv4 addressing is used. Set the variable to 1 to use IPv6 addressing instead. It may be possible to mix IPv4 and IPv6 addressing between client and server, but controlling that behavior is beyond the scope of ACUCOBOL-GT. Refer to your system documentation for more information on the effects of mixing addressing versions. For best results, unless otherwise necessary, use the same AGS_USE_IPV6 setting for all ACUCOBOL-GT programs or client/server environments.

If your program is not using a configuration file, you can set AGS_USE_IPV6 within the runtime environment; if your program does use a configuration file, you can set the variable in either. In some cases, such as acurcl -start , the variable must be set in the configuration file, because a child process is spawned that does not inherit the environment of the parent.

In ACUCOBOL-GT, you specify an IPv6 address in the same way as you would an IPv4 address:

SERVER_IP 1111:2222:3333:4444:5555:6666:7777:8888

However, when using one of the Acu utilities (for example, AcuConnect), if you are specifying a port number, you need to use brackets around the actual IP address, as shown below. This is also applicable if you are specifying an address that contains any other additional notation, so as to remove the ambiguity of where the IP address starts and ends:

CODE_PREFIX *[1111:2222:3333:4444:5555:6666:7777:8888]:/usr/acu/code
Note: You can specify the host name of an IPv6 address just as you would for an IPv4 address, without any further code changes necessary.