File: ClientChannel.H

package info (click to toggle)
dxpc 3.8.0-5
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 672 kB
  • ctags: 780
  • sloc: cpp: 10,145; sh: 173; makefile: 87
file content (53 lines) | stat: -rw-r--r-- 1,089 bytes parent folder | download | duplicates (2)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef ClientChannel_H
#define ClientChannel_H

#include "Channel.H"
#include "ClientReadBuffer.H"
#include "WriteBuffer.H"
#include "ClientCache.H"
#include "ServerCache.H"
#include "SequenceNumQueue.H"
#include "Stats.H"

#include "Compresser.H"

class DecodeBuffer;

class ClientChannel:public Channel
{
  public:
  ClientChannel(int xClientFD, unsigned int statisticsLevel);
    virtual ~ ClientChannel();

  virtual int doRead(EncodeBuffer &);
  virtual int doWrite(const unsigned char *message, unsigned int length);

  void setBigEndian(int flag);

    protected:
  void decodeCharInfo_(DecodeBuffer &, unsigned char *);

  ClientReadBuffer readBuffer_;
  int fd_;
  WriteBuffer writeBuffer_;
  int firstRequest_;
  int firstReply_;

  ClientCache clientCache_;
  ServerCache serverCache_;
  SequenceNumQueue sequenceNumQueue_;

  int bigEndian_;
  unsigned int imageByteOrder_;
  unsigned int bitmapBitOrder_;
  unsigned int scanlineUnit_;
  unsigned int scanlinePad_;

  unsigned int statisticsLevel_;
  Stats stats_;


  Compresser *compresser;
};

#endif /* ClientChannel_H */