Adobe Cirrus: the fastest way to deliver a piece of data to a single peer with a known identifier

Adobe Cirrus offers a number of options for transferring data from a peer: Directed Routing, Object Replication, and Multicast, to name a few.

I just want to send data to one particular peer so that other peers can “see” it on the way.

My experiments with Directed Routing (the obvious answer) did not go well. all sendto methods ... do not work, and NetGroup.post works fine in the same netgroup. I am concerned about the use of direct connections due to reliability.

Has anyone successfully implemented one single messaging strategy (not one for many) that can still send a message between unrelated peers - (Directed Routing) or successfully solve this problem?

I am considering various workarounds, but I'm really puzzled by the fact that these methods NetGroup: sendToNearest, sendToNeighbourand sendToAllNeighbourssimply do not work, for no apparent reason.

+3
source share
2 answers

, , NetGroup . , " NetGroup RTMFP", ( , RTMFP, p2p).

- Direct Connection, , NetGroup. "" . - , , . , , , peer ( peer ). , netConnection.send('whatever');.

+1

netGroup.sendToNearest , . NetGroup.SendTo.Notify. , , , ... , P2P node. , NetGroup.SendTo.Notify , . , event.info.fromLocal. , , , . , . , , , . - ...

if (!event.info.fromLocal)
    netGroup.sendToNearest(event.info.message, event.info.message.destination)

, , , , , . , UDP , - ​​. RTMFP - .

: http://www.flashrealtime.com/directed-routing-explained-flash-p2p/

+2

All Articles