| Dicop-Proxy documentation | view source | Contained in the Dicop-Proxy distribution. |
Dicop::Proxy - A proxy for a Dicop system
use Dicop::Proxy; $proxy = Dicop::Proxy->new(); $proxy->parse_client_requests($self,$requests);
This module includes some routines that make up the logic of the proxy part of the server.
This is a subclass of Dicop::Handler and overrides only the necc. methods.
This package is used by dicopp to implement a full Dicop-Proxy.
perl5.008003, Exporter
Exports nothing per default.
my $req_id = $proxy->remap_request_id( $response->request_id() );
Map from server's response request_id back to what the client sent us.
Takes a request, and adds it to the _send_cache. It also creates a client_info request, if that isn't already there, otherwise it updates the client info. Return 1 if we need to send to the server (cache full), otherwise 0.
Create the text that is sent to the server by stringing together request and info requests from the cache.
Clear the send cache and the client info list, reset the request id for the send cache.
Create a new Dicop::Proxy object and init the data fields of it. Called by the servers init() method.
Uses build_server_talk to build the text for the upstream server, send it to the server, and then clear the cache and client info list. Returns the servers answer as text.
Called for each testcase request.
Called for each work request.
Called for each file request.
Called for each chunk the client reports back.
Returns the string 'proxy'.
Returns true.
Output a string to STDERR for debugging purposes.
None known yet.
(c) Bundesamt fuer Sicherheit in der Informationstechnik 1998-2006
DiCoP is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
See http://www.bsi.de/ for more information.
| Dicop-Proxy documentation | view source | Contained in the Dicop-Proxy distribution. |