Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
OpenXPKI::Service(3)  User Contributed Perl Documentation OpenXPKI::Service(3)

Name
       OpenXPKI::Service - base	class for services.

Description
       Base class for service implementations. The protocol definition itself
       is left to the derived classes.

   Methods
       BUILD

       is the constructor (called via new()). Fills the	api attribute with a
       newly created API object.

       talk

       Expects hash reference to send to the client. Serialized	data structure
       and sends message via the transport layer.

       collect

       Reads message from the client, deserializes the input and returns the
       corresponding data structure.

       set_timout

       Sets read timeout (seconds) for the collect() call. If no message is
       read within the specified timout	collect() terminates with an
       exception.  Default is undef which means	no timeout (wait forever).

       get_API

       Gets OpenXPKI::Server::API object.

       __get_error

       Expects the following named parameters:

       o   ERROR

	   a single error string or an array reference (please see the array
	   description below)

       o   ERRORS

	   a list of error like	described for the ERROR	parameter

       o   EXCEPTION

	   a single OpenXPKI::Exception

       o   EXCEPTIONS

	   an array of OpenXPKI::Exception

perl v5.24.1			  2017-07-03		  OpenXPKI::Service(3)

Name | Description

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=OpenXPKI::Service&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help