This module defines some global constants used by other Zorp components like TRUE and FALSE, and interface entry points to the Zorp core.
Logs a debug message.
debug ( level, msg ) |
Sends the given message to the low level Zorp provided log function.
![]() | this function is obsolete and should not be used. |
Table 4-141. Arguments for .debug()
| level | log level |
| msg | message |
Logs an error message
error ( level, msg ) |
Sends the given message to the low level Zorp provided log function.
![]() | This function is obsolete and should not be used. |
Table 4-142. Arguments for .error()
| level | log level |
| msg | message |
Default init() function provided by Zorp
init ( name ) |
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.
Table 4-143. Arguments for .init()
| name | name of this instance |
Entry point of Zorp logging subsystem.
log (
logclass,
verbosity,
msg,
)
|
This function is implemented in C, and can be used to inject messages into Zorp logging subsystem.
Table 4-144. Arguments for .log()
| logclass | hierarchical log class as described in zorp(8) |
| verbosity | verbosity of this message |
| msg | message |
Logs an informational message
message ( level, msg ) |
Sends the given message to the low level Zorp provided log function.
![]() | This function is obsolete and should not be used. |
Table 4-145. Arguments for .message()
| level | log level |
| msg | message |
Builtin class for proxies implemented as an ExtensionClass in C
This class should not be used directly, derive classes from Proxy.Proxy.
Initialize a low level proxy instance.
__init__ (
self,
name,
session_id,
client_stream,
)
|
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.
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_stream | client stream |