File: requester.h

package info (click to toggle)
kppp 4:17.08.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 4,176 kB
  • sloc: cpp: 13,825; tcl: 49; sh: 19; xml: 15; makefile: 5
file content (38 lines) | stat: -rw-r--r-- 824 bytes parent folder | download | duplicates (9)
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
#ifndef _REQUESTER_H_
#define _REQUESTER_H_

class Requester {

public:
  Requester(int);
  ~Requester();

  int  openModem(const QString & dev);
  int  openLockfile(const QString & dev, int flags = 0);
  bool removeLockfile();
  int  openResolv(int flags);
  int  openSysLog();
  bool setSecret(int method, const QString & name, const QString & password);
  bool removeSecret(int authMethode);
  bool setHostname(const QString & name);
  bool execPPPDaemon(const QString & arguments);
  bool killPPPDaemon();
  int  pppdExitStatus();
  bool stop();

public:
  static Requester *rq;
  int lastStatus;

private:
  bool sendRequest(struct RequestHeader *request, int len);
  bool recvResponse();
  int  recvFD();
  int  indexDevice(const QString & dev);
  int  socket;
  bool expect_alarm;
};

void recv_timeout(int);

#endif