#include <AbstractRemoteObject.h>

Public Member Functions | |
| TAbstractRemoteObject () | |
| virtual Retval | connect ()=0 |
| virtual Retval | connect (const IString &rAddress, Uint uiPort)=0 |
| virtual Retval | disconnect () |
| bool | isRunning () const |
| virtual void MQUALIFIER | getClassName (IString &rName) const =0 |
| virtual void MQUALIFIER | getCodeModuleName (IString &rName) const =0 |
| virtual Retval MQUALIFIER | getConnectionParam (IString &rAddress, Uint &rPort) const |
| virtual Retval MQUALIFIER | askForInterface (Uint uiInterfaceID, IZUnknown *&rpIface) |
| virtual void MQUALIFIER | addRef () const |
| virtual void MQUALIFIER | release () const |
Protected Member Functions | |
| virtual | ~TAbstractRemoteObject () |
| Retval | getClientSocket (Uint uiThreadID, TSocket *&rpSocket) const |
Protected Attributes | |
| TAutoPtr< TAbstractSkel > | m_ptrSkeleton |
| Skeleton in case of binding the object for remote access. | |
| TString | m_strAddress |
| Address of skeleton. | |
| Uint | m_uiPort |
| Port of the skeleton. | |
| TAbstractRemoteObject::TAbstractRemoteObject | ( | ) |
Creates the abstract remote object
| TAbstractRemoteObject::~TAbstractRemoteObject | ( | ) | [protected, virtual] |
Destroys the abstract remote object
| virtual Retval zeus::TAbstractRemoteObject::connect | ( | ) | [pure virtual] |
| virtual Retval zeus::TAbstractRemoteObject::connect | ( | const IString & | rAddress, | |
| Uint | uiPort | |||
| ) | [pure virtual] |
| Retval TAbstractRemoteObject::disconnect | ( | ) | [virtual] |
Disconnects or kills the remote object server (skeleton). After this call, all remote access connections will be released.
| RET_NOERROR | : Connection closed | |
| RET_REQUEST_FAILED | : Object was not connected |
| bool TAbstractRemoteObject::isRunning | ( | ) | const |
Checks if the skeleton of the remote object is running
| virtual void MQUALIFIER zeus::TAbstractRemoteObject::getClassName | ( | IString & | rName | ) | const [pure virtual] |
Returns the classname of the wrapped object
| rName | : Return parameter |
Implements zeus::IRemoteObject.
| virtual void MQUALIFIER zeus::TAbstractRemoteObject::getCodeModuleName | ( | IString & | rName | ) | const [pure virtual] |
Returns the name of the codemodule for the wrapped object
| rName | : Return parameter |
Implements zeus::IRemoteObject.
| Retval MQUALIFIER TAbstractRemoteObject::getConnectionParam | ( | IString & | rAddress, | |
| Uint & | rPort | |||
| ) | const [virtual] |
| virtual Retval MQUALIFIER zeus::TAbstractRemoteObject::askForInterface | ( | Uint | uiInterfaceID, | |
| IZUnknown *& | rpIface | |||
| ) | [virtual] |
| virtual void MQUALIFIER zeus::TAbstractRemoteObject::addRef | ( | ) | const [virtual] |
| virtual void MQUALIFIER zeus::TAbstractRemoteObject::release | ( | ) | const [virtual] |
| Retval TAbstractRemoteObject::getClientSocket | ( | Uint | uiThreadID, | |
| TSocket *& | rpSocket | |||
| ) | const [protected] |
Returns the client socket of the connected client. The thread ID is used to distinguish between clients. Use TreadManager to receive the thread id in the running program context.
Skeleton in case of binding the object for remote access.
TString zeus::TAbstractRemoteObject::m_strAddress [protected] |
Address of skeleton.
Uint zeus::TAbstractRemoteObject::m_uiPort [protected] |
Port of the skeleton.