P2P GroupSpecifier Class Explained In Details Part 1
March 11th, 2010
If you’ve tried my tutorial on creating a simple chat using P2P NetGroup in Flash Player 10.1, you might have been wondering what the other parameters you can set up mean.
GroupSpecifier is a very powerful class and ASDocs are good resource to look in, but I thought I’d write few more words on this topic since it’s easier to understand with a little more explanation.
postingEnabled and multicastEnabled
These are self-explanatory. Just a little note: the difference between Multicast and Posting is simply in the overhead used during their management. Posting should be used when you have lots of senders sending relatively little data (like Chat). Multicast when you have fewer senders sending lots of data (Video, Chat).
peerToPeerDisabled
Why should I disable P2P when I am building a P2P application? Obvious question. This one is for IP Multicast.
Application-Level-Multicast (so called P2P Multicast) is multicast established over peers.
Native IP Multicast is multicast enabled in the network – it must be supported by routers and the network itself.
Fusion is Application-Level-Multicast and Native IP Multicast used together.
So, when you disable P2P by saying peerToPeerDisabled=true, your app will use only Native IP Multicast, which is more efficient, but works mostly only in closed networks (like a company network).
serverChannelEnabled
Opens supporting functions from the server. In the basic scenario it enables auto-bootstrapping. Bootstrapping in this context means adding peers to the group. You can do this manually by calling the addBootstrapPeer function or setting serverChannelEnabled=true to make it automatic. In the P2P Chat example it basically takes care of adding peers to a group and establishes communication between them.
groupspecWithAuthorizations and groupspecWithoutAuthorizations
Difference? Security. If you set a posting or multicast password, the one “with” can post or multicast, the one “without” is receive-only.
Remember – GroupSpecifier is technically a String combined of properties and the name. If you change a property you will be in a different group.
More to come soon.
Facebook comments:
15 Comments »
RSS feed for comments on this post. / TrackBack URL

it’s very good !
Comment by cooerson — March 13, 2010 @ 5:09 pm
Stratus is really cool, but at Web Responsive we are somewhat hesitant in starting using it, since it doesn’t seem that Adobe has a release plan yet.
Comment by Kim Hansen — March 26, 2010 @ 12:10 pm
I’m wondering does LCCS have support for these new Flash Player 10.1 features like GroupSpecifier, NetGroup, etc? It seems these features are Stratus only for now, correct?
Comment by whoops — March 29, 2010 @ 11:45 pm
Good question, a FMS Server can take part in a group? Or I need to replace all my streaming servers by laptops running a simple Flash player ? (Will be very cost effective, my boss gona love u
Comment by Tom — April 1, 2010 @ 10:49 am
Where can I find the “ReplicationObject” Class? thinks
Comment by cooerson — April 16, 2010 @ 6:29 am
Is it possible to build multiuser chat for FlashPlayer 10.0 or it will only be available in FP 10.1? I mean mass users, not beta testers.
Was it possible to build chat before Stratus (with FMS)?
Comment by prosto — May 19, 2010 @ 8:11 pm
[...] P2P GroupSpecifier Class Explained In Details Part 1 – Multicast Explained in Flash 10.1 P2P – Directed Routing Explained in Flash 10.1 P2P – Simple [...]
Pingback by Video-on-Demand over P2P in Flash Player 10.1 with Object Replication — FlashRealtime.com — July 28, 2010 @ 7:59 pm
[...] P2P GroupSpecifier Class Explained [...]
Pingback by 50 resources to get up to speed with the Flash Platform : Mihai Corlan — July 30, 2010 @ 8:45 am
[...] P2P GroupSpecifier Class Explained In Details Part 1 [...]
Pingback by The next big thing: Adobe Flash P2P « Flash Video Technology and Optimizations — July 30, 2010 @ 8:05 pm
[...]     在FlashPlayer10.1用对象复ĺ¶ĺ®žçŽ°çš„ç‚ąĺŻąç‚ąć–‡ä»¶ĺ†äş«â€˘Â     点对点GroupSpecifier类的解释•     Flash Player10.1对直接路由的解释•     在Flash [...]
Pingback by 有助于Flash平台开发ćŹé€źçš„50个ĺ¦äą čµ„ćş – 新闻资讯 – 9RIA.com天地会 – 论坛 | 谱曲 — August 8, 2010 @ 3:47 pm
Is it possible to connect flex and java using multicast??
Comment by Fábio — September 21, 2010 @ 10:04 pm
the p2p is something. publish one .recive 5 video.
is very later
Comment by pethan — December 2, 2010 @ 10:55 am
I am working on Cirrus….My application is working well on some systems but on some systems it give exception of VerifyError: Error #1014: Class flash.net::GroupSpecifier could not be found.
what could be the reason…please help me
Comment by Umair — March 29, 2011 @ 3:32 pm
hei ,guy,your article is so useful。。THANKS SO MUCH~
Comment by THOMAS-56.COM — September 8, 2011 @ 8:54 am
Hi, your tutorials are very helpful, and i am so interested about the manual bootstrap the groups. Could you do another example to show us a proper way to establish a group ourselves?
Thx a lot ^^
Comment by cookcook — March 28, 2012 @ 11:29 am