You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdenetwork/kppp/requester.h

39 lines
835 B

#ifndef _REQUESTER_H_
#define _REQUESTER_H_
class Requester {
public:
Requester(int);
~Requester();
int openModem(const TQString & dev);
int openLockfile(const TQString & dev, int flags = 0);
bool removeLockfile();
int openResolv(int flags);
int openSysLog();
bool setSecret(int method, const TQString & name, const TQString & password);
bool removeSecret(int authMethode);
bool setHostname(const TQString & name);
bool execPPPDaemon(const TQString & arguments);
bool killPPPDaemon();
int pppdExittqStatus();
bool stop();
public:
static Requester *rq;
int lasttqStatus;
private:
bool sendRequest(struct RequestHeader *request, int len);
bool recvResponse();
int recvFD();
int indexDevice(const TQString & dev);
int socket;
bool expect_alarm;
};
void recv_timeout(int);
#endif