compressorbase.h

来自「ACE源码」· C头文件 代码 · 共 31 行

H
31
字号
// CompressorBase.h,v 1.1 2003/09/25 16:38:58 schmidt Exp

#ifndef COMPRESSOR_BASE_H
#define COMPRESSOR_BASE_H

#include "Protocol_Task.h"

#include <zlib.h>

class CompressorBase
{
public:
    CompressorBase();
    virtual ~CompressorBase() = 0;

  // This is called when the compressor is on the
  // downstream side. We'll take the message, compress it
  // and move it along to the next module.
  virtual int send (ACE_Message_Block *message,
                    ACE_Time_Value *timeout,
                    ACE_Message_Block*& compressed) = 0;

  // This one is called on the upstream side.  No surprise: we
  // decompress the data and send it on up the stream.
    virtual int recv (ACE_Message_Block *message,
                      ACE_Time_Value *timeout,
                      ACE_Message_Block*& decompressed) = 0;
};

#endif /* COMPRESSOR_BASE_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?