Primary Method and Description
Arguments
SendTermination
This method sends an indicator back to the application connection
manager to indicate either end-of-record or end-of-discovery. The
type sent depends upon the argument provided. An argument value
of 2 will send END_DISCOVER; any other value will send
_EOD_.
See also: DISCOVER
$type - integer
RegisterCmdHandler
This method takes a reference to a Perl function and the name of
the command as arguments. The internal hash tk_command is
used to maintain a list of all handlers. For example, given a UaTk
object named $obj, a handler is registered as follows:
$obj->RegisterCmdHandler\ (\&command_handler,"command_name");
where:
command_handler
Specifies the name of your command handler.
command_name
Specifies the name of the command to add the handler to.
If a handler already exists, it is replaced with the new handler. The
function specified must exist or it will not be registered. Problems
might occur is you attempt to use anonymous subroutines as
handlers, so they are not recommended.
See also: UaTkMain
\%func - hash
reference
$cmd - string
Developing Your Application in Perl
64
User Administration Version 3.8