Package | flash.net |
Class | public final class NetGroupReceiveMode |
Inheritance | NetGroupReceiveMode Object |
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10.1, AIR 2 |
receiveMode
property
of the NetGroup class.
Related API Elements
Constant | Defined 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 |
EXACT | Constant |
public static const EXACT:String = "exact"
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10.1, 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.
Related API Elements
NEAREST | Constant |
public static const NEAREST:String = "nearest"
Language Version: | ActionScript 3.0 |
Runtime Versions: | Flash Player 10.1, 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.
Related API Elements
Mon Nov 28 2011, 06:48 AM -08:00