Library: Remoting
Package: Remoting
Header: Poco/Remoting/Skeleton.h
A Skeleton class is the base class that all skeletons must extend. Skeletons are repsonsible for demultiplexing incoming requests to the correct local method.
Direct Base Classes: Poco::RefCountedObject
All Base Classes: Poco::RefCountedObject
Member Functions: addMethodHandler, invoke
Inherited Functions: duplicate, referenceCount, release
typedef std::map < std::string, MethodHandler * > MethodHandlers;
Skeleton();
Creates the Skeleton. Does not take ownership of the pointer
virtual ~Skeleton();
Destroys the Skeleton.
void invoke(
std::istream & in,
std::ostream & out,
Transport & transport,
RemoteObject * localObject
);
Invokes the method matching the methodname in the input stream
void addMethodHandler(
const std::string & name,
MethodHandler * pMH
);
Adds a handler for the given methodname to the skeleton. Takes ownership of the pointer.