`
semi_sleep
  • 浏览: 99029 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

20091007 (Flex P2P)

阅读更多

var conn:NetConnection = new NetConnection("rtmfp://stratus.adobe.com/" + developerKey);
conn.nearID, my p2p id


new NetStream(netConnection, NetStream.DIRECT_CONNECTIONS);
NetStream.DIRECT_CONNECTIONS, wait for other peer
peer id, connect to other peer which has publish as NetStream.DIRECT_CONNECTIONS


Defined at NetStream
public function onPeerConnect(subscriber:NetStream):Boolean
Use to get notify when another client connects


public function send(handlerName:String, ... arguments):void
Sends a message on a published stream to all subscribing clients. refer to the client property

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics