Main Page | Class Hierarchy | Class List | File List | Class Members

RIPCFactory Class Reference

#include <RIPCFactory.h>

Inheritance diagram for RIPCFactory:

RIPCClientFactory RIPCServerFactory List of all members.

Public Member Functions

virtual RIPCSessioncreate (char const *host, int port, int max_attempts=100)=0

Detailed Description

RIPC session factory. This class is used to create session instances. To get reference to the factory instance itself, use src/client/RIPCClientFactory::getInstance() or src/server/RIPCServerFactory::getInstance() methods.


Member Function Documentation

virtual RIPCSession* RIPCFactory::create char const *  host,
int  port,
int  max_attempts = 100
[pure virtual]
 

Create session instance. For client session, connection with server is established.

Parameters:
host server host address (ignored for local sessions)
port server port (ignored for local sessions)
max_attempts maximal connection attemps (performed with 1 second delay). This parameter makes sense opnly for client sessions.
Returns:
session object

Implemented in RIPCClientFactory, and RIPCServerFactory.


The documentation for this class was generated from the following file:
Generated on Wed Nov 26 14:58:19 2003 for RIPC by doxygen 1.3.5