Yate
Public Member Functions | Static Public Member Functions | Protected Attributes
SrvRecord Class Reference

A SRV record. More...

#include <yateclass.h>

Inheritance diagram for SrvRecord:
DnsRecord GenObject

List of all members.

Public Member Functions

 SrvRecord (int prio, int weight, const char *addr, int port)
const Stringaddress () const
int port () const
virtual void dump (String &buf, const char *sep=" ")

Static Public Member Functions

static void copy (ObjList &dest, const ObjList &src)

Protected Attributes

String m_address
int m_port

Detailed Description

A SRV record.

This class holds a SRV (Service Location) record


Constructor & Destructor Documentation

SrvRecord ( int  prio,
int  weight,
const char *  addr,
int  port 
) [inline]

Build a SRV record

Parameters:
prioRecord priority (order)
weightRecord weight (preference)
addrRecord address
portRecord port

Member Function Documentation

const String& address ( ) const [inline]

Retrieve the record address

Returns:
Record address
static void copy ( ObjList dest,
const ObjList src 
) [static]

Copy a SrvRecord list into another one

Parameters:
destDestination list
srcSource list
virtual void dump ( String buf,
const char *  sep = " " 
) [virtual]

Dump this record for debug purposes

Parameters:
bufDestination buffer
sepFields separator

Reimplemented from DnsRecord.

int port ( ) const [inline]

Retrieve the record port

Returns:
Record port

The documentation for this class was generated from the following file: