1 #include <lib/base/message.h>
3 #include <lib/base/eerror.h>
5 eMessagePump::eMessagePump(int mt): content(1024*1024), ismt(mt)
10 eMessagePump::~eMessagePump()
13 content.lock(); // blocks until all messages are processed.
18 int eMessagePump::send(const void *data, int len)
20 int wr = ::write(fd[1], data, len);
26 int eMessagePump::recv(void *data, int len)
28 unsigned char*dst=(unsigned char*)data;
29 int recv=::read(fd[0], dst, len);
35 int eMessagePump::getInputFD() const
40 int eMessagePump::getOutputFD() const