-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsoa.h
More file actions
36 lines (29 loc) · 759 Bytes
/
Copy pathsoa.h
File metadata and controls
36 lines (29 loc) · 759 Bytes
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
#pragma once
#include <string>
#include <vector>
#include <stdbool.h>
#include <algorithm>
#include "record.h"
class SOA : public Record {
public:
std::string getEmail();
int getSerial();
int getRefresh();
int getRetry();
int getExpire();
int setEmail(std::string newEmail);
int setSerial(int newSerial);
int setRefresh(int newRefresh);
int setRetry(int newRetry);
int setExpire(int newExpire);
// content field is primary master, ttl field is the soa min ttl
SOA(std::string n, std::string c, int ttl, std::string mail, int serial, int refresh, int retry, int expire, Tins::DNS::QueryType rec) : Record(n, c, ttl, rec) {};
~SOA();
protected:
std::string primary;
std::string email;
int serial;
int refresh;
int retry;
int expire;
};