Poco::Remoting

class Proxy

Library: Remoting
Package: Remoting
Header: Poco/Remoting/Proxy.h

Description

Base class that all proxies must extend. Used to access an object not running in the same address space. The remoting__ prefix for the Proxy methods is used to avoid nameclashes with method names that RemoteObjects offer.

Inheritance

Direct Base Classes: Identifiable

All Base Classes: Poco::RefCountedObject, Identifiable

Known Derived Classes: Poco::Netconf::ConfigurationServiceProxy

Member Summary

Member Functions: remoting__connect, remoting__disconnect, remoting__isConnected, remoting__mutex, remoting__transport

Inherited Functions: duplicate, referenceCount, release, remoting__getObjectId, remoting__getTypeId, remoting__setObjectId

Constructors

Proxy

Proxy(
    const Poco::Remoting::Identifiable::ObjectId & oid
);

Creates the Proxy.

Destructor

~Proxy virtual

virtual ~Proxy();

Destroys the Proxy.

Member Functions

remoting__connect

void remoting__connect(
    const std::string & protocol,
    const std::string & endPoint
);

Connects the endpoint if it is not yet connected

remoting__disconnect

void remoting__disconnect();

Disconnects the endpoint.

remoting__isConnected

bool remoting__isConnected() const;

Returns the connection status.

remoting__transport

Transport & remoting__transport() const;

Returns the transport, throws an exception if the object is not connected!

remoting__mutex protected inline

Poco::FastMutex & remoting__mutex() const;