📄 compressor.h
字号:
// Compressor.h,v 1.5 1999/02/14 19:29:09 jcej Exp
#ifndef COMPRESSOR_H
#define COMPRESSOR_h
#include "Protocol_Task.h"
/* A reallly dumb compression object. (It actually adds 3 bytes to
every message block.)
*/
class Compressor : public Protocol_Task
{
public:
typedef Protocol_Task inherited;
Compressor (void);
~Compressor (void);
protected:
// 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.
int send (ACE_Message_Block *message,
ACE_Time_Value *timeout);
// This one is called on the upstream side. No surprise: we
// decompress the data and send it on up the stream.
int recv (ACE_Message_Block *message,
ACE_Time_Value *timeout);
};
#endif /* COMPRESSOR_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -