Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remoteNG question #112

Open
wzc81614 opened this issue Apr 12, 2022 · 1 comment
Open

remoteNG question #112

wzc81614 opened this issue Apr 12, 2022 · 1 comment

Comments

@wzc81614
Copy link

wzc81614 commented Apr 12, 2022

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;

virtual ~PublicTime() { }

};
//@ 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.

private:
Poco::Util::Timer _timer;
};

} // namespace Services

#endif // TimeService_INCLUDED

question

RemoteGen can not use like this?
@obiltschnig

@wzc81614
Copy link
Author

@obiltschnig Could you give me some udpate?Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant