
GroupSpecifier是一个用来定义group所有参数的类。首先,将它命名为“myGroup/g1”。然后设置 serverChannel与Stratus进行沟通。最后发布。这样,我们就完成了P2P Group的定义。
然后,我们必须确定实际的NetGroup。groupspecWithAuthorizations()返回字符串 - 这是一个组标识符。
或许你会问,groupspecWithoutAuthorizations()和groupspecWithAuthorizations()之 间有什 么区别。如果你设置了密码,groupspecWithAuthorizations可以发送或组 播,groupspecWithoutAuthorizations只能接收。