Packageflash.net
Classpublic final class NetGroupReceiveMode
InheritanceNetGroupReceiveMode Inheritance Object

Language version: ActionScript 3.0
Runtime version: AIR 2

The NetGroupReceiveMode class is an enumeration of constant values used for the receiveMode property of the NetGroup class.

See also

flash.net.NetGroup.receiveMode
flash.net.NetGroup.sendToNearest()


Public Properties
 PropertyDefined by
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined by
 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
Public Constants
 ConstantDefined by
  EXACT : String = "exact"
[static] Specifies that this node accepts local messages from neighbors only if the address the neighbor uses matches this node's address exactly.
NetGroupReceiveMode
  NEAREST : String = "nearest"
[static] Specifies that this node accepts local messages from neighbors that send messages to group addresses that don't match this node's address exactly.
NetGroupReceiveMode
Constant detail
EXACTconstant
public static const EXACT:String = "exact"

Language version: ActionScript 3.0
Runtime version: AIR 2

Specifies that this node accepts local messages from neighbors only if the address the neighbor uses matches this node's address exactly. That is, this node considers itself as nearest for any NetGroup.sendToNearest() call only if the groupAddress parameter passed to NetGroup.sendToNearest() matches this node's group address exactly. This value is the default setting.

If you want to enable distributed routing behavior, set this value to NetGroupReceiveMode.NEAREST. With this value set, a node waits for its connectivity to stabilize before participating in the Directed Routing mesh.

See also

NEARESTconstant 
public static const NEAREST:String = "nearest"

Language version: ActionScript 3.0
Runtime version: AIR 2

Specifies that this node accepts local messages from neighbors that send messages to group addresses that don't match this node's address exactly. Messages are received when this node is nearest among all neighbors whose receive mode is NetGroupReceiveMode.NEAREST. Distance is measured between addresses on the ring mod 2256.

See also