File: ClientChannel.H

package info (click to toggle)
dxpc 3.9.2-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,164 kB
  • ctags: 1,252
  • sloc: cpp: 12,036; sh: 2,823; makefile: 77
file content (52 lines) | stat: -rw-r--r-- 1,139 bytes parent folder | download | duplicates (3)
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
#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 */