Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[b7a122]: src / org / esb / rpc / Channel.h Maximize Restore History

Download this file

Channel.h    43 lines (36 with data), 1.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* File: Channel.h
* Author: HoelscJ
*
* Created on 11. Januar 2011, 17:07
*/
#ifndef CHANNEL_H
#define CHANNEL_H
#include "google/protobuf/service.h"
#include "org/esb/net/TcpSocket.h"
#include "org/esb/lang/Ptr.h"
namespace org {
namespace esb {
namespace rpc {
class Channel : public google::protobuf::RpcChannel {
public:
Channel();
Channel(org::esb::net::TcpSocket *);
virtual ~Channel();
// Call the given method of the remote service. The signature of this
// procedure looks the same as Service::CallMethod(), but the requirements
// are less strict in one important way: the request and response objects
// need not be of any specific class as long as their descriptors are
// method->input_type() and method->output_type().
virtual void CallMethod(const google::protobuf::MethodDescriptor* method,
google::protobuf::RpcController* controller,
const google::protobuf::Message* request,
google::protobuf::Message* response,
google::protobuf::Closure* done);
private:
org::esb::net::TcpSocket * _socket;
};
}
}
}
#endif /* CHANNEL_H */