Module Zorp

This module defines some global constants used by other Zorp components like TRUE and FALSE, and interface entry points to the Zorp core.

Functions

Function debug

Logs a debug message.

Synopsis

debug ( level,  msg )

Description

Sends the given message to the low level Zorp provided log function.

Note

this function is obsolete and should not be used.

Arguments

Table 4-141. Arguments for .debug()

level log level
msg message

Function error

Logs an error message

Synopsis

error ( level,  msg )

Description

Sends the given message to the low level Zorp provided log function.

Note

This function is obsolete and should not be used.

Arguments

Table 4-142. Arguments for .error()

level log level
msg message

Function init

Default init() function provided by Zorp

Synopsis

init ( name )

Description

This function is a default init() calling the init function identified by name. This way several Zorp instances can easily use the same policy file.

Arguments

Table 4-143. Arguments for .init()

namename of this instance

Function log

Entry point of Zorp logging subsystem.

Synopsis

log (
        logclass,
        verbosity,
        msg,
        )

Description

This function is implemented in C, and can be used to inject messages into Zorp logging subsystem.

Arguments

Table 4-144. Arguments for .log()

logclasshierarchical log class as described in zorp(8)
verbosityverbosity of this message
msgmessage

Function message

Logs an informational message

Synopsis

message ( level,  msg )

Description

Sends the given message to the low level Zorp provided log function.

Note

This function is obsolete and should not be used.

Arguments

Table 4-145. Arguments for .message()

levellog level
msg message

Class ZorpProxy

Builtin class for proxies implemented as an ExtensionClass in C

This class should not be used directly, derive classes from Proxy.Proxy.

Constructor __init__

Initialize a low level proxy instance.

Synopsis

__init__ (
        self,
        name,
        session_id,
        client_stream,
        )

Description

This function is implemented in C, and is responsible of loading the needed proxy module from a shared object if it has not yet been loaded, and starting a new instance with parameters passed here.

Arguments

Table 4-146. Arguments for ZorpProxy.__init__()

self this instance
name proxy module name (http, plug etc.)
session_id session id to use in log messages
client_streamclient stream