class rpcsfactory

A factory for automatically instantiating the correct protocol variant depending on the connected Psion. More...

Definition#include <lib/rpcsfactory.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods


Detailed Description

A factory for automatically instantiating the correct protocol variant depending on the connected Psion.

enum errs {FACERR_NONE = 0, FACERR_COULD_NOT_SEND = 1, FACERR_AGAIN = 2, FACERR_NOPSION = 3, FACERR_PROTVERSION = 4, FACERR_NORESPONSE = 5, }

The known errors which can happen during create .

 rpcsfactory (ppsocket * skt)

Constructs a rpcsfactory.

Parameters:
sktThe socket to be used for connecting to the ncpd daemon.

rpcs *  create (bool reconnect)

[virtual]

Creates a new rpcs instance.

Parameters:
reconnectSet to true, if automatic reconnect should be performed on failure.

Returns: A pointer to a newly created rpcs instance or NULL on failure.

Enum<errs>  getError ()

[virtual]

Retrieve an error code.

Returns: The error code, in case create has failed, 0 otherwise.


Generated by: felfert@usw-pr-shell1.sourceforge.net on Sat Aug 10 18:46:04 2002, using kdoc 2.0a36.