/*----------------------------------------------------------------------------
	Date   : 23-5-96
	Author : Chetan Francis Pinto
	About  : Issues involved in Transfer of User Data Base
				via COM Port
----------------------------------------------------------------------------*/

	1.Open the COM Port using < CMiscCom::Open_Comm >

	2.Try and connect to the Router either "Directly"
	  or by "Dialling" using < Connect >

	3.Get the Router ID
	  Header used while sending is "ReqType"
	  Header for receiving is "OpenConnectionType"
	  Packet type is "QUERY_BRIDGE_NAME" for sending
	  On successful receipt Packet Type is "RES_TYPE"
	  Check whether "ERR_ROUTER_UP" has come

	4.Get to know the number of Ports the Router supports
	  The info about this is available in the Header
	  "BootConfigType"
	  Header used while sending is "ReadLocReqType"
	  Header for receiving is "ReadLocRespType"
	  The Packet Type for sending is "READ_REQ_TYPE"

	5.Read the User Data Base Header to get details
	  about the Compressed User Data Base 
	  Header used while sending is "ReadLocReqType"
	  Header for receiving is "ReadLocRespType"
	  The Packet Type for sending is "READ_REQ_TYPE"

	6.Read the DBase in small chunks into a local file
	  < USER.DTB > 
	  Header used while sending is "ReadLocReqType"
	  Header for receiving is "ReadLocRespType"
	  The Packet Type for sending is "READ_REQ_TYPE"
	  Packet Type on receipt is "READ_RESP_TYPE"

	7.Uncompress < USER.DTB > into < USER.TMR >
	  using < LZWExpandFromFile >

	8.Call the Users Dialog

	9.On Request for Download Compress < USER.TMR >
	  into < USER.DTB > using < CMiscCom::LZWCompress >

  10.Get the Router ID - Is it required ? Is it to know the status ?
	  Header used while sending is "ReqType"
	  Header for receiving is "OpenConnectionType"								
	  Packet type is "QUERY_BRIDGE_NAME" for sending
	  On successful receipt Packet Type is "RES_TYPE"
	  Check whether "ERR_ROUTER_UP" has come

  11.First the action is to be specified "ON_LINE_WRITE_UDB"
	  Header used while sending is "TargetCmdType"
	  Header for receiving is "ResultType"

  12.The User Data Base Header is written
	  Header used while sending is "dnld_head_type"
	  Header for receiving is "DnLdPktHdrType"

  13.Next < USER.DTB > is written out to the Box in chunks
	  using the same guidelines as in Step 12
	
  14.Disconnect from the Router using < Disconnect >

  15.Close the COM Port using < CMiscCom::Close_Comm >


Other enhancements
------------------
	. Encrypting the user database (Decryption is necessary)
	.  Decryption is Req. for CHAP


/*------------------END OF DOCUMENT-----------------------------------------*/
