|
|
|||||||||||||||||||||||
| The PROTOCOL integer tag is used in taglists
prepared for the LOGON function, to establish the
network protocol that a CAS instance will use for communications with
CAS servers.
The PROTOCOL tag can be set to one of the following values:
|
|||||||||||||||||||||||
|
XML Interface: |
|||||||||||||||||||||||
| The PROTOCOL tag is included in the XML for
all function taglists
in the CAS XML Interface. See CAS
XML Communications for more information. |
|||||||||||||||||||||||
| Type | Max Size | Multiple Allowed | |||||||||||||||||||||
| Integer | 4 bytes | No | |||||||||||||||||||||
Example: |
|||||||||||||||||||||||
|
function LogOn(
OpenSessionToo ) { var CAS_instance; // Logon to the connection router if (CAS_instance = CAS.Open(6,"",1000000)) { var Tl, UniqueName, StatusNum; Tl = CAS.New(); CAS.AddTag(Tl,"LOGON",""); UniqueName = "XYZ-"+ parseInt(Math.random()* 100000000000+100000000000); 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) { // The CAS instance is now logged on to the domain's // connection router. We could open/close sessions as // needed now that we're logged on, but for this example // we'll just log off. Tl = CAS.New(); CAS.AddTag(Tl,"LOGOFF",""); Tl = CAS.Send(CAS_instance,Tl); CAS.Delete(Tl); } CAS.Close(CAS_instance); } } |
|||||||||||||||||||||||
See Also: |
|||||||||||||||||||||||
| LOGON, LOGOFF, LOGON_NAME, DOMAIN_NAME | |||||||||||||||||||||||
|
|