74. A method for discovering resources in a peer-to-peer network, the method comprising: a peer node broadcasting a discovery query message specifying a type of resource on the network; and the peer node receiving advertisements for the specified type of resource in response to said discovery query message, wherein advertisements include a peer advertisement and a content or service advertisement, wherein one or more other peer nodes publish the peer and content or service advertisements on the peer-to-peer network; wherein the service or content advertisement comprises an identification of a corresponding service or content and an indication of how to access the corresponding service or content; wherein the peer advertisement comprises an identification of a corresponding one of said peers and communication address for the corresponding one of said peers, wherein one or more of said peer advertisements further comprises an indication of a service or a content provided by the peer corresponding to that peer advertisement; wherein each advertisement is a programming language independent metadata document formatted in accordance with a peer-to-peer protocol.
74. A method for discovering resources in a peer-to-peer network, the method comprising: a peer node broadcasting a discovery query message specifying a type of resource on the network; and the peer node receiving advertisements for the specified type of resource in response to said discovery query message, wherein advertisements include a peer advertisement and a content or service advertisement, wherein one or more other peer nodes publish the peer and content or service advertisements on the peer-to-peer network; wherein the service or content advertisement comprises an identification of a corresponding service or content and an indication of how to access the corresponding service or content; wherein the peer advertisement comprises an identification of a corresponding one of said peers and communication address for the corresponding one of said peers, wherein one or more of said peer advertisements further comprises an indication of a service or a content provided by the peer corresponding to that peer advertisement; wherein each advertisement is a programming language independent metadata document formatted in accordance with a peer-to-peer protocol. 79. The method as recited in claim 74 , wherein the discovery query message specifies pipes as the resource type.