File: ServerChannel.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 (51 lines) | stat: -rw-r--r-- 1,107 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
#ifndef ServerChannel_H
#define ServerChannel_H

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

#include "Decompresser.H"

class ServerChannel:public Channel
{
  public:
  ServerChannel(int xServerFD, unsigned int statisticsLevel);
    virtual ~ ServerChannel();

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

  void setBigEndian(int flag);

    protected:
  void encodeCharInfo_(const unsigned char *nextSrc, EncodeBuffer &);

  ServerReadBuffer 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_;
  Stats replyStats_;

  Decompresser *decompresser;
};

#endif /* ServerChannel_H */