You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
};
//@ remote class TimeService : public PublicTime
{
public:
TimeService();
/// Creates the TimeService.
~TimeService();
/// Destroys the TimeService.
Poco::BasicEvent<const std::string> wakeUp;
Poco::DateTime currentTime() const;
/// Returns the current date and time.
void wakeMeUp(const Poco::DateTime& time, const std::string& message);
/// Schedules a wakeup call.
///
/// Fires the wakeUp event at the given time, passing
/// the given message as argument.
Expected Behavior
printf current Time
Actual Behavior
Remote Exception: Method not found: currentTime
Steps to Reproduce
modify RemotingNG samples TimeServerTCP.h
#ifndef TimeService_INCLUDED
#define TimeService_INCLUDED
#include "Poco/Foundation.h"
#include "Poco/BasicEvent.h"
#include "Poco/DateTime.h"
#include "Poco/Util/Timer.h"
namespace Services {
//@ remote
class PublicTime {
public:
virtual Poco::DateTime currentTime() const = 0;
};
//@ remote
class TimeService : public PublicTime
{
public:
TimeService();
/// Creates the TimeService.
private:
Poco::Util::Timer _timer;
};
} // namespace Services
#endif // TimeService_INCLUDED
question
RemoteGen can not use like this?
@obiltschnig
The text was updated successfully, but these errors were encountered: