3Com Traffix Transcend Traffix Manager User Manual page 148

For windows nt
Table of Contents

Advertisement

148
A
E: A
PPENDIX
UTOMATIC
A
A
TTRIBUTE
SSIGNMENT
Table 20 Example Programs (continued)
Name
Language
Visual Basic
country
Visual Basic
template
The C examples are located in C:\Transcend Traffix
Manager\TraffixServer\examples\c and the Visual Basic
examples are in C:\Transcend Traffix
Manager\TraffixServer\examples\vb. You should copy one of
these samples to your own directory before modifying it.
Attribute lookup programs must be able to find the attripc.dll file when
they are running. This file is located in the Traffix Manager install
directory. In order that your program can find this file, you should copy
your program to the Traffix Manager install directory and run it from
there, or you should add the Traffix Manager install directory to the PATH
environment variable (it must be added as a system environment variable,
not a user variable). Be careful not to overwrite any of the executables
already in the Traffix Manager install directory.
Once you have built your attribute lookup program and copied it if
necessary, you should add it to the user-defined attribute program
configuration file (see
Configuration File"
on
Library functions available
Table 21
shows a full list of the functions available to attribute lookup
programs in the attripc DLL library:
Table 21 Functions available to lookup programs in the attripc DLL library
Function
Description
Takes no arguments. Returns an integer. This function waits
GetNextLookup
until Traffix Manager want to determine new attributes for a
device, or until Traffix Manager is closing down. If Traffix
Manager wants to determine attributes for a device, this
returns 1. If Traffix Manager wants your program to exit, this
function returns 0.
(continued)
Description
Simple example program which assigns an
attribute country based on DNS name.
Empty attribute program which does nothing, but
which contains all the necessary project files and
declarations to build an attribute lookup program.
"Contents of the User-defined Attributes
page
138).

Advertisement

Table of Contents
loading

This manual is also suitable for:

Transcend traffix manager 3.0

Table of Contents