man TGI () - This class is used for interfacing to DSO loaded TGI interpreters. TGI interpreter module.

NAME

TGI - This class is used for interfacing to DSO loaded TGI interpreters. TGI interpreter module.

SYNOPSIS



#include <bayonne.h>

Public Member Functions

virtual void script (char *cmd, char **args)

Check command for interpreter and, if is, execute it. virtual int parse (int fd, int port, char *cmd)

Execute a first stage interpreter, uses local functions.

Protected Member Functions

virtual bool getExtension (char *ext)

Check a file extension to see if it belongs to a first stage tgi script interpreter (avoids second fork).

Friends

void getInterp (char *cmd, char **args)

TGI * getInterp (char *cmd)

Detailed Description

This class is used for interfacing to DSO loaded TGI interpreters. TGI interpreter module.

Author: David Sugar <dyfet@ostel.com>

Member Function Documentation

virtual bool TGI::getExtension (char * ext) [inline, protected, virtual]

Check a file extension to see if it belongs to a first stage tgi script interpreter (avoids second fork).

Returns: true if claimed.

Parameters: extension. .RE

virtual int TGI::parse (int fd, int port, char * cmd) [inline, virtual]

Execute a first stage interpreter, uses local functions.

Returns: shell exit code.

Parameters: fifo file descriptor.

port number.

unparsed command string.

virtual void TGI::script (char * cmd, char ** args) [inline, virtual]

Check command for interpreter and, if is, execute it.

If so it doesn't return but uses 'exit'. This is a 'second' stage tgi mod interface and is effective for single session interpreter libraries.

Parameters: script name resolved.

argument list.

Author

Generated automatically by Doxygen for Bayonne from the source code.