This module defines an interface to the AnyPy proxy as implemented in Zorp. AnyPy is basically a Python proxy which means that the proxy behaviour is defined in Python by the administrator.
import Connector
Implements classes to establish a connection.
import Proxy
Module defining classes encapsulating native proxies.
import Service
Module defining service related classes.
import Zorp
Module defining global constants, and interface entry points to the Zorp core.
This class encapsulates AnyPy, a proxy module calling a Python function to do all of its work. It can be used for defining proxies for protocols not directly supported by Zorp.
none
Constructor to initialize an AnyPy instance.
__init__ ( self, session ) |
This constructor initializes a new AnyPy instance based on arguments and calls the inherited constructor.
Table 4-1. Arguments for AnyPyProxy.__init__()
self | this instance |
session | session we belong to |
Function called by the low level proxy core to perform transferring requests.
proxyThread ( self ) |
This function is called by the proxy module to perform transferring requests. It may use the self.session.client_stream and self.session.server_stream streams to read data from and write data to.
Table 4-2. Arguments for AnyPyProxy.proxyThread()
self | this instance |
NotImplementedError