#include <llares.h>
Public Member Functions | |
LLSrvRecord (const std::string &name, unsigned ttl) | |
U16 | priority () const |
Service priority. | |
U16 | weight () const |
Service weight. | |
U16 | port () const |
Port number of service. | |
Protected Member Functions | |
int | parse (const char *buf, size_t len, const char *pos, size_t rrlen) |
Protected Attributes | |
U16 | mPriority |
U16 | mWeight |
U16 | mPort |
Classes | |
struct | ComparePriorityLowest |
Functor for sorting SRV records by priority. More... |
Definition at line 222 of file llares.h.
LLSrvRecord::LLSrvRecord | ( | const std::string & | name, | |
unsigned | ttl | |||
) |
Definition at line 696 of file llares.cpp.
int LLSrvRecord::parse | ( | const char * | buf, | |
size_t | len, | |||
const char * | pos, | |||
size_t | rrlen | |||
) | [protected, virtual] |
Reimplemented from LLHostRecord.
Definition at line 701 of file llares.cpp.
References mPort, mPriority, mWeight, and LLHostRecord::parse().
U16 LLSrvRecord::priority | ( | ) | const [inline] |
Service priority.
Definition at line 237 of file llares.h.
References mPriority.
Referenced by LLAres::SrvResponder::srvResult().
U16 LLSrvRecord::weight | ( | ) | const [inline] |
Service weight.
Definition at line 242 of file llares.h.
References mWeight.
Referenced by LLAres::SrvResponder::srvResult().
U16 LLSrvRecord::port | ( | ) | const [inline] |
Port number of service.
Definition at line 247 of file llares.h.
References mPort.
Referenced by LLAres::UriRewriteResponder::queryResult(), and LLAres::SrvResponder::srvResult().
U16 LLSrvRecord::mPriority [protected] |
Definition at line 225 of file llares.h.
Referenced by LLSrvRecord::ComparePriorityLowest::operator()(), parse(), and priority().
U16 LLSrvRecord::mWeight [protected] |
U16 LLSrvRecord::mPort [protected] |