C# Class NetLib.DNS.Records.SRVRecord

Show file Open project: sgissinger/JabberNet-2010 Class Usage Examples

Public Properties

Property Type Description
NameNext string
Pad ushort
Port ushort
Priority ushort
Weight ushort

Public Methods

Method Description
ToString ( ) : string

Returns a string representation of this record.

The string returned looks like: name next: [SERVER] priority: [PRIOR] weight: [WEIGHT] port: [PORT] where [SERVER] = string representation of NameNext and [PRIOR] = string representation of Priority and [WEIGHT] = string representation of Weight and [PORT] = string representation of Port

Method Details

ToString() public method

Returns a string representation of this record.
The string returned looks like: name next: [SERVER] priority: [PRIOR] weight: [WEIGHT] port: [PORT] where [SERVER] = string representation of NameNext and [PRIOR] = string representation of Priority and [WEIGHT] = string representation of Weight and [PORT] = string representation of Port
public ToString ( ) : string
return string

Property Details

NameNext public property

Gets or sets the name
Pointer to a string representing the target host.
public string NameNext
return string

Pad public property

Reserved.
Reserved. Used to keep pointers DWORD aligned.
public ushort Pad
return ushort

Port public property

Gets or sets the port
Port used on the terget host for the service.
public ushort Port
return ushort

Priority public property

Gets or sets the priority
Priority of the target host specified in the owner name. Lower numbers imply higher priority.
public ushort Priority
return ushort

Weight public property

Gets or sets the weight
Weight of the target host. Useful when selecting among hosts with the same priority. The chances of using this host should be proportional to its weight.
public ushort Weight
return ushort