摘要 |
A peer in a peer-to-peer network joins an advertisement room having an associated identifier. A joining peer identifies a peer closest to the advertisement room. In various embodiments, the peer that is closest to the advertising room is the peer having a discreet hash table ID closest to the advertisement room identifier. The joining peer requests from the closest peer information about peers that the closest peer knows to be part of the advertisement room. The closest peer provides the joining peer with connection information for those peers, and the joining peer establishes connections with the peers. Peers in the advertisement room provide advertisements for chat rooms. To join a chat room, a peer determines which of its peers in the advertisement room is the closest peer to the chat room, based on the chat room identifier, and informs that peer that it is now part of the chat room.
|