正文

Athony's project

(2005-01-21 15:49:14) 下一个

P2P group game. Multiple ppl create a virtual enviroment. There is a map, ppl move from one place to anther place. Whenever a player move to a new place, it need to know the other players there, join their session. So how to know that?  First, he divide the map into cells (6 edges) and when node move he knows which cell it belongs to. It use the cell id as a key and hash to a node with DHT such as Pastry. Then it contact that node. That node tells this node who is the master of this cell. and the node will contact the master in this cell. The master maintains the membership of this cell. Every cell there is a master and many slaves. The master-slave relationship is decided as in the scatter net in Bluetooth.

[ 打印 ]
阅读 ()评论 (0)
评论
目前还没有任何评论
登录后才可评论.