|
|
|||||
| The PORT_NAME string tag appears in port information taglists retrieved from the server with the GET_PORTS_INFO function. | |||||
| Type | Max Size | Multiple Allowed | |||
| String | 128 | No | |||
Example: |
|||||
|
function
GetSendPortCount() { var SendPortCount=0; var Tl, Count, Index, Config; Tl = CAS.New(); CAS.AddTag(Tl,"GET_PORTS_INFO",""); CAS.AddTag(Tl,"REGISTERED_NAME",REGISTERED_NAME.value); CAS.AddTag(Tl,"REGISTERED_PASSWORD",REGISTERED_PASS.value); // Send on this already open session Tl = CAS.Send(Instance,Tl); if ((Count = parseInt(CAS.GetTag(Tl,"NUMBER_OF_PORTS",0))) > 0) { for ( Index=0; Index<Count; Index++) { Sl = CAS.OpenSection(Tl,"PORT_NAME["+Index+"]"); Config = parseInt(CAS.GetTag(Sl,"HOW_CONFIGURED",0)); if (Config == 2 || Config == 3) { SendPortCount++; } CAS.CloseSection(Sl); } } return( SendPortCount); } |
|||||
See Also: |
|||||
| GET_PORTS_INFO | |||||
|
|