plptools
Loading...
Searching...
No Matches
RPCSFactory Class Referencefinal

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

#include <rpcsfactory.h>

Public Member Functions

 RPCSFactory (const std::string &host, int port)
 Constructs a RPCSFactory. More...
 
 ~RPCSFactory ()
 Delete the RPCSFactory, cleaning up any resources. More...
 
RPCScreate (bool, Enum< ConnectionError > *error=nullptr)
 Creates a new RPCS instance. More...
 

Private Attributes

std::string host_
 
int port_
 

Detailed Description

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

Definition at line 33 of file rpcsfactory.h.

Constructor & Destructor Documentation

◆ RPCSFactory()

RPCSFactory::RPCSFactory ( const std::string &  host,
int  port 
)

Constructs a RPCSFactory.

Parameters
hostThe host be used for connecting to the ncpd daemon.
portThe port be used for connecting to the ncpd daemon.

Definition at line 33 of file rpcsfactory.cc.

◆ ~RPCSFactory()

RPCSFactory::~RPCSFactory ( )

Delete the RPCSFactory, cleaning up any resources.

Definition at line 37 of file rpcsfactory.cc.

Member Function Documentation

◆ create()

RPCS * RPCSFactory::create ( bool  reconnect,
Enum< ConnectionError > *  error = nullptr 
)

Creates a new RPCS instance.

Parameters
reconnectSet to true, if automatic reconnect should be performed on failure.
errorOut parameter; set to the error on failure if non-NULL.
Returns
A pointer to a newly created RPCS instance or NULL on failure.

Definition at line 39 of file rpcsfactory.cc.

Member Data Documentation

◆ host_

std::string RPCSFactory::host_
private

Definition at line 60 of file rpcsfactory.h.

◆ port_

int RPCSFactory::port_
private

Definition at line 61 of file rpcsfactory.h.


The documentation for this class was generated from the following files: