Poco::Remoting

class Skeleton

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

Description

A Skeleton class is the base class that all skeletons must extend. Skeletons are repsonsible for demultiplexing incoming requests to the correct local method.

Inheritance

Direct Base Classes: Poco::RefCountedObject

All Base Classes: Poco::RefCountedObject

Known Derived Classes: Poco::Netconf::ConfigurationServiceSkeleton

Member Summary

Member Functions: addMethodHandler, invoke

Inherited Functions: duplicate, referenceCount, release

Types

MethodHandlers

typedef std::map < std::string, MethodHandler * > MethodHandlers;

Constructors

Skeleton

Skeleton();

Creates the Skeleton. Does not take ownership of the pointer

Destructor

~Skeleton virtual

virtual ~Skeleton();

Destroys the Skeleton.

Member Functions

invoke

void invoke(
    std::istream & in,
    std::ostream & out,
    Transport & transport,
    RemoteObject * localObject
);

Invokes the method matching the methodname in the input stream

addMethodHandler protected

void addMethodHandler(
    const std::string & name,
    MethodHandler * pMH
);

Adds a handler for the given methodname to the skeleton. Takes ownership of the pointer.