diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-02-07 15:44:13 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-02-07 15:44:13 +0000 |
commit | 3909553d3309ebbbbcdfb2c5f5ad1dab7b846eee (patch) | |
tree | 6525000f89f82d55ce36ead9da9b47d9c02cfec2 /lib/server/makeprotocol.pl.in | |
parent | e370cf08364620cac777affb07088b59260025b2 (diff) |
Add ReceiveStream to protocol callable base class.
So we can call it on either a Client or a Local protocol object, without
having to know which it is, or cast it.
Diffstat (limited to 'lib/server/makeprotocol.pl.in')
-rwxr-xr-x | lib/server/makeprotocol.pl.in | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/server/makeprotocol.pl.in b/lib/server/makeprotocol.pl.in index a074b435..0e6f7351 100755 --- a/lib/server/makeprotocol.pl.in +++ b/lib/server/makeprotocol.pl.in @@ -512,6 +512,7 @@ public: virtual ~$protocol_base_class(); virtual const char *GetIdentString(); bool GetLastError(int &rTypeOut, int &rSubTypeOut); + virtual std::auto_ptr<IOStream> ReceiveStream() = 0; protected: void CheckReply(const std::string& requestCommand, @@ -534,12 +535,6 @@ public: $replyable_base_class(); virtual ~$replyable_base_class(); - /* - virtual std::auto_ptr<$message_base_class> Receive() = 0; - virtual void Send(const ${message_base_class} &rObject) = 0; - */ - - virtual std::auto_ptr<IOStream> ReceiveStream() = 0; virtual int GetTimeout() = 0; void SendStreamAfterCommand(std::auto_ptr<IOStream> apStream); @@ -658,7 +653,6 @@ print H <<__E; class $callable_base_class : public virtual $protocol_base_class { public: - virtual std::auto_ptr<IOStream> ReceiveStream() = 0; virtual int GetTimeout() = 0; __E |