summaryrefslogtreecommitdiff
path: root/docs/tutorials/015/Compressor.h
blob: f13104328418c7b95a9ce8c6b35db518e294b3cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

// $Id$

#ifndef COMPRESSOR_H
#define COMPRESSOR_h

#include "Protocol_Task.h"

class ACE_SOCK_Stream;

class Compressor : public Protocol_Task
{
public:
    
    typedef Protocol_Task inherited;
    
    Compressor( int _thr_count = 0 );
    ~Compressor(void);

protected:

     int send(ACE_Message_Block *message,
              ACE_Time_Value *timeout);

     int recv(ACE_Message_Block *message,
              ACE_Time_Value *timeout);

private:
    mode_t mode_;
};

#endif // COMPRESSOR_H