tifMAIN_TASK.C

Section: Devices and Network Interfaces (4)
Updated: 2012-04-23 10:10
Index Return to man pages list
 

NAME

tifMAIN_TASK.C - definition of the tif tifMAIN_TASK class

 

SYNOPSIS


#include "tifInternal.h"
tifMAIN_TASK app; USE(app);

 

PARENT CLASS


evhSTD_COMMANDS

 

DESCRIPTION


This class implements the tif main application.

 

PUBLIC METHODS


tifMAIN_TASK();
    The constructor loads the routing table and installs all the callbacks
    for commands to be routed to TCS modules. The standard commands which
    are treated by the tif module itself are processed by the parent class
    evhSTD_COMMANDS.

~tifMAIN_TASK();
The destructor unregisters all the callbacks and frees the in-memory
routing table.

evhCB_COMPL_STAT InitCB(msgMESSAGE &msg, void *userData);
    Handles the INIT command, reloades the routing table.

evhCB_COMPL_STAT ExitCB(msgMESSAGE &msg, void *userData);
    Handles the EXIT command.

evhCB_COMPL_STAT RouteCommand(msgMESSAGE &msg, tifROUTING *route);
    The command router creates a tifCOMMAND object from the received
    user command, sends it to the appropriate TCS process and installs
    callbacks to handle the replies/error reply/timeout.

evhCB_COMPL_STAT GenericCB(msgMESSAGE &msg, void *userData);
    This method is installed to handle all unknown user commands by
    discarding them and returning an error reply.

evhCB_COMPL_STAT PrintTable(msgMESSAGE &msg, void *userData);
    PRNCMD command handler. Prints the loaded routing table onto the
    standard output.

 

PUBLIC DATA MEMBERS


    None

 

PROTECTED METHODS


    None

 

PROTECTED DATA MEMBERS


    None

 

PRIVATE METHODS


ccsCOMPL_STAT InitModule();
    Initializes the module at startup and on an INIT command.

ccsCOMPL_STAT LoadCommands();
    Loads the routing table from database to memory and installs
    callbacks for all specified user commands.

 

PRIVATE DATA MEMBERS


tifROUTING *table;
    Pointer to dynamically allocated routing table.

 

RETURN VALUES


SUCCESS on successful completion
FAILURE on any error
evhCB_XXX (event handler callbacks): bitmapped values, see evh user manual

 

ENVIRONMENT


TCS_ENVNAME specifies the environment in which TCS runs
TCS_DBPOINT specifies the root point of the TCS database branch

 

COMMANDS


All the standard commands are provided and handled internally, i.e. affect
the tif itself but are not routed. For other commands see the documentation
of the corresponding TCS module.

 

SEE ALSO


tifCOMMAND, tifControl



 

Index

NAME
SYNOPSIS
PARENT CLASS
DESCRIPTION
PUBLIC METHODS
PUBLIC DATA MEMBERS
PROTECTED METHODS
PROTECTED DATA MEMBERS
PRIVATE METHODS
PRIVATE DATA MEMBERS
RETURN VALUES
ENVIRONMENT
COMMANDS
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 10:10:00 GMT, April 23, 2012