Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
flash.net.dns 
SRVRecord 
Packageflash.net.dns
Classpublic class SRVRecord
InheritanceSRVRecord Inheritance ResourceRecord Inheritance Object

Language Version: ActionScript 3.0
Runtime Versions: AIR 2

The SRVRecord class represents a Domain Name System (DNS) SRV resource record containing a service host.

SRV resource records are returned by a DNSResolver object as a result of a DNS lookup on a service locator. More than one record can be returned by a single lookup if more than one service host is available.

See also



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 InheritedAIR-only name : String
The query string used to look up this resource record.
ResourceRecord
  AIR-only port : int
The port the service is using on the server.
SRVRecord
  AIR-only priority : int
The priority of the service host identified by this record.
SRVRecord
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  AIR-only target : String
The canonical host name of the server providing the service.
SRVRecord
 InheritedAIR-only ttl : int
The resource time-to-live (ttl) value.
ResourceRecord
  AIR-only weight : int
The relative weight to use when selecting from service hosts that have the same priority.
SRVRecord
Public Methods
 MethodDefined By
  
Creates an SRV resource record.
SRVRecord
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail
AIR-only 

port

property
port:int

Language Version: ActionScript 3.0
Runtime Versions: AIR 2

The port the service is using on the server.



Implementation
    public function get port():int
    public function set port(value:int):void
AIR-only 

priority

property 
priority:int

Language Version: ActionScript 3.0
Runtime Versions: AIR 2

The priority of the service host identified by this record.

Lower values are higher priority.



Implementation
    public function get priority():int
    public function set priority(value:int):void
AIR-only 

target

property 
target:String

Language Version: ActionScript 3.0
Runtime Versions: AIR 2

The canonical host name of the server providing the service.



Implementation
    public function get target():String
    public function set target(value:String):void
AIR-only 

weight

property 
weight:int

Language Version: ActionScript 3.0
Runtime Versions: AIR 2

The relative weight to use when selecting from service hosts that have the same priority.



Implementation
    public function get weight():int
    public function set weight(value:int):void
Constructor Detail
AIR-only 

SRVRecord

()Constructor
public function SRVRecord()

Language Version: ActionScript 3.0
Runtime Versions: AIR 2

Creates an SRV resource record.

SRV records are obtained from a DNS lookup using the DNSResolver class. Application code should not create SRVRecord objects.