#include <ares-test.h>
Definition at line 137 of file ares-test.h.
◆ MockServer()
ares::test::MockServer::MockServer |
( |
int |
family, |
|
|
int |
port |
|
) |
| |
◆ ~MockServer()
ares::test::MockServer::~MockServer |
( |
| ) |
|
◆ fds()
std::set< int > ares::test::MockServer::fds |
( |
| ) |
const |
◆ MOCK_METHOD2()
ares::test::MockServer::MOCK_METHOD2 |
( |
OnRequest |
, |
|
|
void(const std::string &name, int rrtype) |
|
|
) |
| |
◆ ProcessFD()
void ares::test::MockServer::ProcessFD |
( |
int |
fd | ) |
|
◆ ProcessRequest()
void ares::test::MockServer::ProcessRequest |
( |
int |
fd, |
|
|
struct sockaddr_storage * |
addr, |
|
|
int |
addrlen, |
|
|
int |
qid, |
|
|
const std::string & |
name, |
|
|
int |
rrtype |
|
) |
| |
|
private |
◆ SetReply()
◆ SetReplyData()
void ares::test::MockServer::SetReplyData |
( |
const std::vector< byte > & |
reply | ) |
|
|
inline |
◆ SetReplyQID()
void ares::test::MockServer::SetReplyQID |
( |
int |
qid | ) |
|
|
inline |
◆ tcpport()
int ares::test::MockServer::tcpport |
( |
| ) |
const |
|
inline |
◆ udpport()
int ares::test::MockServer::udpport |
( |
| ) |
const |
|
inline |
◆ connfds_
std::set<int> ares::test::MockServer::connfds_ |
|
private |
◆ qid_
int ares::test::MockServer::qid_ |
|
private |
◆ reply_
std::vector<byte> ares::test::MockServer::reply_ |
|
private |
◆ tcpfd_
int ares::test::MockServer::tcpfd_ |
|
private |
◆ tcpport_
int ares::test::MockServer::tcpport_ |
|
private |
◆ udpfd_
int ares::test::MockServer::udpfd_ |
|
private |
◆ udpport_
int ares::test::MockServer::udpport_ |
|
private |
The documentation for this class was generated from the following files: