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)
22 return ::write(fd[1], data, len)<0;
25 int eMessagePump::recv(void *data, int len)
27 unsigned char*dst=(unsigned char*)data;
32 int r=::read(fd[0], dst, len);
41 int eMessagePump::getInputFD() const
46 int eMessagePump::getOutputFD() const