Changes between Version 6 and Version 7 of MapGuideRfc118


Ignore:
Timestamp:
07/05/11 00:32:12 (13 years ago)
Author:
wuma
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc118

    v6 v7  
    9696 * For IPv6, we pass in '''{{{::}}}'''. Then it will listen to all IPv6 address.
    9797
    98  4. '''Add the IPv6  / v4 configuration in serverconfig.ini'''
    99 We need a way to determine we should pass in '''{{{0.0.0.0}}}''' or '''{{{::}}}''' as the '''{{{host_name}}}''' parameter when instantizte the '''{{{ACE_INET_Addr}}}''' objects. Although passing the ip address seems to be the right way to determine the protocol version at runtime, adding a new configuration parameter in '''{{{serverconfig.ini}}}''' is a much simpler and more reliable solution – the machine IP is specified by the '''{{{MachineIp}}}''' parameter, but it can happen that the user doesn’t input any ip address at all in '''{{{serverconfig.ini}}}'''. So adding one more parameter is a better idea. The parameter will be added into '''{{{GeneralProperties}}}''' section following the '''{{{MachineIp}}}''' parameter.
    100 {{{
    101 [GeneralProperties]
    102 # *****************************************************************************
    103 # G E N E R A L
    104 #
    105 # Property Name                    Description
    106 # -----------------------------------------------------------------------------
    107 # MachineIp     IP address of this server
    108 # Ipv6          Specify if the server will listen to Ipv6 addresses.
    109 #               Possible values: 1, 0 or empty.
    110 #               0 or empty means it’s Ipv4. 1 (or non-zero values) means Ipv6
    111 }}}
     98 4. '''3.3.1.4  Detect IPv6  / v4 by MachineIp parameter'''
     99We need a way to determine if we should pass in '''{{{0.0.0.0}}}''' or '''{{{::}}}''' as the '''{{{host_name}}}''' parameter when instantiate the '''{{{ACE_INET_Addr}}}''' objects. Checking the machine IP address is a right way to determine the protocol version at runtime. The machine IP is specified by the '''{{{MachineIp}}}''' parameter in '''{{{serverconfig.ini}}}'''. Now the '''{{{MachineIp}}}''' parameter is optional. And if it’s not specified, '''{{{127.0.0.1}}}''' will be used as the default value. This behavior doesn’t have to be changed. A summary is:
     100
     101||'''Value'''||'''Behavior'''||'''Listen to'''
     102||Empty||127.0.0.1 will be used as the default value. ||0.0.0.0
     103||In IPv4 format||Entered value will be sued as machine IP ||0.0.0.0
     104||In non-IPv4 format||Entered value will be sued as machine IP||::
     105
    112106
    113107 5. '''Change the way encoding Site IpAddress into SessionId'''