|
|
|||||||||||||||||
|
The Open method allocates resources in the CAS driver that are necessary for network and inter-process communications, and returns an instance handle that must be passed to the Send method. When the instance handle is no longer needed, it must be passed to the Close method. To trace the interaction between your application and the CAS driver and servers, different debug modes can be passed to the Open method that will cause all communications to be logged, either to a file or in memory. A memory debug log can be retrieved with the GetDbgDump method.
|
|||||||||||||||||
|
Parameters: |
|||||||||||||||||
|
|||||||||||||||||
|
Return Values: |
|||||||||||||||||
| Instance handle or null if there was a fatal error. | |||||||||||||||||
|
Example: |
|||||||||||||||||
|
function LogOn()
{ var CAS_instance; // Get access to CAS interface and open an instance if (CAS = new ActiveXObject("CASX.CAS")) { if (CAS_instance = CAS.Open(0,"",0)) { var Tl, UniqueName, StatusNum; // Logon to the connection router Tl = CAS.New(); CAS.AddTag(Tl,"LOGON",""); UniqueName = "XYZ-"+parseInt(Math.random()*1000000+1000000); CAS.AddTag(Tl,"LOGON_NAME",UniqueName); CAS.AddTag(Tl,"DOMAIN_NAME","\\\\CASDEV\\NETSATISFAXTION"); CAS.AddTag(Tl,"PROTOCOL",2); // IP Tl = CAS.Send(CAS_instance,Tl); StatusNum = parseInt(CAS.GetTag(Tl,"STATUS_NUM",0)); CAS.Delete(Tl); if (StatusNum == 0) { return(CAS_instance); } CAS.Close(CAS_instance); } } return(null); } |
|||||||||||||||||
|
See Also: |
|||||||||||||||||
| CAS Close, LOGON, CAS New | |||||||||||||||||
|
|