DummynetPipe.hh 637 Bytes
Newer Older
1
2
3
4
5
// DummynetPipe.hh

#ifndef DUMMYNET_PIPE_HH_DELAY_AGENT_1
#define DUMMYNET_PIPE_HH_DELAY_AGENT_1

6
7
struct dn_pipe;

8
9
10
class DummynetPipe : public RootPipe
{
public:
11
  DummynetPipe(std::string const & newPipeNumber);
12
13
14
15
  virtual ~DummynetPipe();
  virtual void reset(void);
  virtual void resetParameter(Parameter const & newParameter);
private:
16
  char * callGetsockopt(char * data, size_t * count);
17
18
  void updateParameter(struct dn_pipe *pipe, Parameter const & parameter);
  void setPipe(struct dn_pipe *pipe);
19
20
  char * getAllPipes(void);
  struct dn_pipe * findPipe(char * data);
21
22
23
24
25
  int dummynetPipeNumber;
  int dummynetSocket;
};

#endif