OpenCog Framework
Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
ZMQClient.h
Go to the documentation of this file.
1
/*
2
* opencog/atomspace/ZMQClient.h
3
*
4
* Copyright (C) 2008-2010 OpenCog Foundation
5
* All Rights Reserved
6
*
7
* Written by Erwin Joosten
8
*
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU Affero General Public License v3 as
11
* published by the Free Software Foundation and including the exceptions
12
* at http://opencog.org/wiki/Licenses
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU Affero General Public License
20
* along with this program; if not, write to:
21
* Free Software Foundation, Inc.,
22
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23
*/
24
25
#ifndef _OPENCOG_ZMQ_CLIENT_H
26
#define _OPENCOG_ZMQ_CLIENT_H
27
28
#include "
opencog/atomspace/Atom.h
"
29
#include "
opencog/atomspace/Handle.h
"
30
#include "
types.h
"
31
#include <lib/zmq/zmq.hpp>
32
#include <opencog/atomspace/ZMQMessages.pb.h>
33
#include <string>
34
#include <boost/thread.hpp>
35
36
using namespace
std;
37
38
namespace
opencog {
43
class
ZMQClient
{
44
zmq::socket_t*
zmqClientSocket
;
45
zmq::context_t*
zmqContext
;
46
47
void
SendMessage(
ZMQRequestMessage
& requestMessage,
48
ZMQReplyMessage
& replyMessage);
49
50
public
:
51
ZMQClient
(
string
networkAddres=
"tcp://127.0.0.1:5555"
);
//"ipc:///tmp/AtomSpaceZMQ.ipc"
52
~
ZMQClient
();
53
54
AtomPtr
getAtom(
Handle
& h);
55
57
};
58
60
}
// namespace opencog
61
62
#endif // _OPENCOG_ZMQ_CLIENT_H
types.h
opencog::AtomPtr
std::shared_ptr< Atom > AtomPtr
Definition:
Handle.h:48
opencog::ZMQClient
Definition:
ZMQClient.h:43
Handle.h
opencog::ZMQClient::zmqContext
zmq::context_t * zmqContext
Definition:
ZMQClient.h:45
ZMQReplyMessage
Definition:
ZMQMessages.pb.h:941
ZMQRequestMessage
Definition:
ZMQMessages.pb.h:849
Atom.h
opencog::Handle
Definition:
Handle.h:53
opencog::ZMQClient::zmqClientSocket
zmq::socket_t * zmqClientSocket
Definition:
ZMQClient.h:44
opencog
persist
zmq
atomspace
ZMQClient.h
Generated on Sat Aug 22 2015 21:00:13 for OpenCog Framework by
1.8.6