ClearBox Server v1.2 Developer's Guide |
ICSVAccounting::SetCSVOptionsServer extension should call this method or SetLoggedAttributesNames to specify list of attributes that are logged into accounting logfile. It's necessary to call one of these methods prior to using LogRADPacketCSV, LogTACPacketCSV, LogRADPacketCSVEx or LogTACPacketCSVEx methods. HRESULT SetCSVOptions( [in] BSTR sepCharacter, [in] VARIANT_BOOL logEnumeratedNames, [in] VARIANT_BOOL logAttributeNames); Parameters
Return ValuesThis method may return E_INVALIDARG if length of sepCharacter is not 1 character. Thread SafetyThis method can be called from any thread. Memory ManagementServer extension should allocate and free memory for sepCharacter parameter. RemarksIf this method is called after call to LogRADPacketCSV or LogTACPacketCSV, it still affects server behavior. Example CodeThis code uses m_pServer as IServer interface pointer stored in ICommonExtenderEx::InitializeEx implementation. It instructs the server that it should separate logged data with ';' and put logged attributes names in the first line of the logfile. ICSVAccounting* pAcc=NULL; m_pServer->QueryInterface(IID_ICSVAccounting,(void**)&pAcc; //QueryInterface will always succeed BSTR delimiter=SysAllocString(L";"); pAcc->SetLoggedAttributes(4,pTypes); SysFreeString(delimiter); // Call to pAcc->Release() is not necessary See AlsoICSVAccounting, Server services, CSV Accounting Logging, SetLoggedAttributesNames, LogRADPacketCSV, LogTACPacketCSV © 2001-2003 XPerience Technologies. www.xperiencetech.com |
Created by chm2web html help conversion utility. |