Home > Store

Peer-to-Peer Programming on Groove®

Register your product to gain access to bonus material or receive a coupon.

Peer-to-Peer Programming on Groove®

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2002
  • Edition: 1st
  • Book
  • ISBN-10: 0-672-32332-X
  • ISBN-13: 978-0-672-32332-4

In October of 1997, Ray Ozzie, creator of Lotus Notes, began development of Groove. Groove is a peer-to-peer application platform for building and deploying peer-to-peer applications. Because Groove takes care of the underlying connectivity and synchronization issues, developers can concentrate on creating applications in the peer-to-peer space. While the technology under the hood of Groove is cutting-edge and somewhat daunting, the actual process of creating applications is approachable for advanced beginner or intermediate programmers.

The book is organized by first to actually produce and deploy peer-to-peer applications. After exploring the Groove platform. Next, the reader is eased into application development by customizing Groove with a "skin." This exercise will demonstrate how XML and external resources are used in Groove, and will detail a step that the reader will probably want to take for each application developed and deployed.

The first tutorial will begin the creation of a peer-to-peer trivia game application, and will address User Interface (UI), persistence and dissemination issues. This part will require hand-coding of the XML for both understanding and experience. The completion of the second part will result in a working peer-to-peer application, a simple trivia game. Next, we will discuss some advanced topics that deal with administration and database integration. These topics address features provided in the premium version of Groove. Finally, we will include some comments about the future of peer-to-peer and the opportunities it creates for our readers.

Sample Content

Online Sample Chapter

Exploring the Groove Application

Table of Contents



Introduction.


1. Why Peer-to-Peer?

A Short History.

Dynamic IP Addresses and NAT.

Client/Server Applications.

Peer-to-Peer Versus Client/Server Applications.

A Tour of the Peer-to-Peer Landscape.

Distributed Processing.

Distributed Storage Services.

Distributed Network Services.

Decentralized Collaboration.

Summary.



2. What Is Groove?

In the Beginning.

Stealth Mode.

Ease of Use.

What It Is.

Tools.

Mix, Match, and Customize.

Example: Great Schools Now, Inc.

Example: American Wooden Widgets.

How to Think.



3. Exploring the Groove Application.

Installing Groove.

Creating an Account.

About Identities.

Multiple Devices.

Creating a Shared Space.

Adding Tools.

Deleting a Shared Space.

Inviting Others.

Issuing an Invitation.

Receiving Invitations.

Shared Space Members.

Groove Tools.

Calendar Tool.

Contact Manager.

Discussion Tool.

Files Tool.

Outline Tool.

Pictures Tool.

Notepad Tool.

Sketchpad Tool.

Web Browser.

Summary.



4. Understanding Groove Architecture.

The Model-View-Controller Structure.

The Groove Structure.

The Shared Space.

Groove Platform Services.

Account and Identity Services.

UI Services.

Component Services.

Shared Space Services.

Dynamics Services.

Communications Subsystem.

Storage and XML Services.

Security Manager.

Web Services.

Customer Services Subsystem.

Summary.



5. Essential XML.

XML History.

Standard Generalized Markup Language (SGML).

HTML.

XML.

What XML Is.

An XML Document.

Prolog.

DTD.

Namespaces.

XML Schema.

Background.

Building a Schema.

Groove's Use of XML.

Groove Schemas.

Summary.



6. Essential OSD.

The History of OSD.

Microsoft's OSD Specification.

Groove's Use of OSD.

The Groove Manifest.

Writing an OSD File.

The Groove Manifest.

The Model Changes.

ComponentURLProviders.

Groove Assembly Files.

Thinking in OSD.

Summary.



7. Creating a Groove Development Environment.

The DevZone.

The GDK.

Development Account.

Supplemental Applications.

Specialized Groove Tools.

The Groove Database Navigator Tool.

The Tool Creator and Groove Tool Publisher Tools.

Registry Files.

EnableScriptDebugging.reg.

EnableCellBorders.reg.

EnableMyTemplates.reg.

The Plan.

Groove Tool Development.

Tool Template Development.

Publishing Your Tool.

Summary.



8. Customizing Groove.

Groove Skins.

Getting Ready.

Modifying the Images.

Image Editing.

Understanding the Changes.

Changing TransceiverWindowBackground.jpg.

Changing the Look of Buttons.

Sounds.

Publishing a Skin.

Creating the Descriptor File.

Creating the Injector File.

Testing Injection.

The Transceiver Template.

Summary.



9. Building a Basic Groove Tool.

Tool Templates.

View Container Components.

UI Components.

Engine Component.

Glue Code Components.

Creating a Tool Template Skeleton.

The ToolTemplate Element.

ComponentGroup Elements.

The Layout.

The Button.

The Engine Component.

The Glue Code.

The Completed Skeleton.

TriviaQuiz1.

Creating the Layout.

The TitleLabel Component.

The QuestionLabel Component.

The AnswerLabel Components.

The Elapsed Time Components.

The NextQuestionButton Component.

The Glue Code.

The Finished Tool.

TriviaQuiz2.

The PropertyList.

Setting the Question and Answer Labels.

Changing Labels.

Elapsed Time.

Handling Multiple Guesses.

The Revised Tool.

TriviaQuiz3.

Initialization Code.

The OnPropertyChanged Function.

Synchronizing Screens.

A Few Tweaks.

Summary.



10. Publishing a Basic Groove Tool.

Preparation.

Writing the Files.

Creating a Tool Descriptor.

Creating Your OSD.

Creating the .GRV.

Testing and Troubleshooting.

Summary.



11. Easier Groove: The Tool Creator and Tool Publisher.

Tool Creator.

Installation.

Tool Creation.

Tool Modification.

Overlay a Tool.

View Source.

Tool Publisher.

Installation.

Preparation.

Publishing a Tool.

Summary.



12. Easier Groove: Modifying the Basic Groove Tool with Tool Creator and Tool Publisher.

The Welcome Screen.

Adding a Layout.

Adding a Graphic.

Adding a Title Element.

Adding Two Buttons.

The Add Questions Screen.

Adding Components.

Adding the DataViewer.

Viewing the Layout.

Changing Screens.

Code for Entering Questions.

The Play Trivia Screen.

Publishing TriviaQuiz.

Taking It to the Web.

Summary.



13. Data Integration and Groove Bots.

Data Integration and Groove.

Connectors.

Bots.

Groove Enterprise Integration Server.

Data Integration, Bots, and TriviaQuiz.

Using a Bot with TriviaQuiz.

Summary.



14. Advanced Topics.

More About OSD.

Managing the Component Tree Structure.

Versioning.

Major and Minor Versions.

Roles and Permissions.

Tool-Level Access Control.

Adding Help.

Subforms.

Using Subforms.

Summary.



15. The Future of Peer-to-Peer.

The Killer App.

Peer-to-Peer Challenges.

Potential Growth Areas for Peer-to-Peer.

Matchmaking.

Knowledge Portals.

Supply Chain Coordination.

Distributing Clinical Information.

Online Bill Payment.

Document Management.

Real-Time Searching.

Real-Time Collaborative Publishing.

Personalization.

The Microsoft/Groove Partnership.

Features of the Killer App.

Is There a Killer App?



Appendix A. Groove Template Component Reference.

ViewContainer.

HTMLTableLayout.

MultiCellLayout.

XYLayout.

Splitter.

SingleCellViewContainer.

ScriptHost.

GrooveEdit.

GrooveComboBox.

GrooveStatic.

ActiveXWrapper.

GrooveButton.

GrooveImage.

GrooveListBox.

GrooveTabControl.

RecordSetEngine.

GrooveTimer.

GrooveMenu.

GrooveListView.

GrooveTreeView.

GrooveHeader.

StandardDescriptors.



Appendix B. Glossary.


Appendix C. Complete Trivia Quiz Code.


Index. 067232332XT03252002

Preface

The Internet Web site webopedia.internet.com defines peer-to-peer architecture as "A type of network in which each workstation has equivalent capabilities and responsibilities. This differs from client/server architectures, in which some computers are dedicated to serving the others." But peer-to-peer is much more than a technology; it represents a radical change in how we will soon use our computers. It is, all at once, a revolution, an evolution, and a revision.

It is a revolution because it turns today's current client/server architecture on its ear. Suddenly, we're all producers of information as well as mere consumers.

Peer-to-peer computing is also a cultural revolution. Peer-to-peer technology will fundamentally change the way small groups work and interact over the Internet. By making it easy to find and download music over the Web, Napster not only has shown how fragile intellectual property rights of digital material are, but has probably affected the business model of the major media players, too.

It is an evolution because the current state of software engineering makes possible distributed processing and storage across personal computers, as well as the first attempts to provide an operating system for the Internet.

It is a revision because, in the early days of the Internet, peer-to-peer is how all computers were interconnected. The rise of the Web, with millions of people surfing, engaging in e-commerce, and downloading streaming video, made client/server architecture a really good idea.

About Groove

Groove is an application that uses the Internet to make direct connections between members of a group. That group can consist of friends, family, co-workers, or any collection of people who want to communicate, solve problems, or work on a common task. Some of the functions of Groove let you talk, chat, send instant messages, draw pictures, share photos and files, play games, and browse the Web with other members of your group. With Groove, you communicate within secure, shared virtual spaces, in real-time, or in different places at different times. In addition, Groove is a platform that allows you to create, deploy, and run your own peer-to-peer applications.

At the time of this writing, Groove runs only on PCs running the Windows operating system. These are the minimum requirements for installing and running Groove:

  • A 233MHz Pentium processor or equivalent
  • 64MB of RAM
  • 40MB of available hard disk storage
  • A 56kbps modem (DSL or cable modem preferred)
  • Microsoft Internet Explorer 4.0 or greater (IE 5.0 or greater recommended)
  • A sound card, speakers, and microphone, for using the voice features
  • Updated minimum requirements are posted at www.groove.net/downloads/groove.

Who Should Read This Book

This book is intended for those who want to develop peer-to-peer applications in Groove. The skills required to develop Groove applications include an understanding of the peer-to-peer paradigm, a working knowledge of extensible Markup Language (XML), familiarity with Open Software Description (OSD), and the ability to understand programming in JavaScript. Only the programming skill will be assumed--this book will help the reader develop the remaining skills. Information on these skills will be presented before Groove tool development is presented. The material is slanted toward intermediate programmers and advanced beginners but should be useful for advanced programmers with little prior knowledge of the peer-to-peer space.

How the Book Is Structured

The following 15 chapters give advanced beginner or intermediate programmers all the necessary background needed to understand the peer-to-peer paradigm, the Groove application, Groove architecture, XML, and OSD, as well as the ability to program and deploy an application on the Groove peer-to-peer platform:

  • Chapter 1, "Why Peer-to-Peer?" explores the historical roots of peer-to-peer applications and discusses why peer-to-peer will be even more important in the future. Peer-to-peer applications are contrasted with client/server applications, highlighting strengths and weaknesses for various tasks.
  • Chapter 2, "What Is Groove?" touches on the history of Groove--why and how it was developed. It describes the product and presents a case study of its use to solve an actual business problem. The chapter concludes showing why Groove is particularly useful to intermediate programmers or advanced beginners wanting to program in the peer-to-peer space.
  • Chapter 3, "Exploring the Groove Application," exposes you to the Groove application. Detailed instructions for installing the application from the CD and a tour of Groove features let readers have the opportunity to experience peer-to-peer interaction. You will see and use some Groove tools similar to the ones you will soon be building.
  • In Chapter 4, "Understanding Groove Architecture," you learn the concept of a shared space and the function of the Groove transceiver. The underlying services that take care of security, persistence, and dissemination of data are explored so that you'll understand what services Groove provides. Component services are particularly covered so that you'll know how versioning and automatic dissemination of Groove tools--including tools you may build--takes place.
  • Chapter 5, "Essential XML," presents the basics of XML as they relate to Groove operation and tool development.
  • Chapter 6, "Essential OSD," explores the concept of Open Software Description. OSD provides an XML-based vocabulary for describing software packages and their interdependencies. With OSD, Groove provides the means for extending and updating the Groove application, including tools like the ones you will develop. Writing OSD is an essential step of tool development in Groove.
  • Chapter 7, "Creating a Groove Development Environment," assists you in configuring your machines to easily develop Groove tools without affecting their capability to use Groove. You will verify that you have the applications you need to program Groove tools. All necessary applications are either included in system software or freely downloadable from the Net. Next, you'll learn how to reconfigure Groove to be able to safely build tools. Finally, we will walk you through the installation of the Groove Development Kit (GDK) and explore its contents.
  • Chapter 8, "Customizing Groove," gives you the opportunity to create your own Groove skin. Creating a skin provides an easy entry into many of the concepts needed to develop Groove tools.
  • In Chapter 9, "Building a Basic Groove Tool," a short discussion of the steps and elements needed to develop a Groove tool is followed by a step-by-step tutorial. The tutorial begins the creation of a peer-to-peer trivia game tool, and addresses User Interface (UI), persistence, and dissemination issues. This part requires hand-coding of the XML for both understanding and experience.
  • After an exploration of the tool descriptor, OSD, and .GRV files, Chapter 10, "Publishing a Basic Groove Tool," is a step-by-step tutorial on publishing the tool created in the preceding chapter.
  • Chapter 11, "Easier Groove: The Tool Creator and Tool Publisher," introduces two tools supplied by Groove to make creating and publishing tools easier. You use these tools to finish the trivia game application.
  • Chapter 12, "Easier Groove: Modifying the Basic Groove Tool with Tool Creator and Tool Publisher," is a tutorial that uses Tool Creator and Tool Publisher to modify and extend the trivia game tool and to republish it.
  • Chapter 13, "Data Integration and Groove Bots," is a study of data integration in Groove through connectors and Groove bots. Data integration extends the reach of Groove tools by allowing them to connect with external information and applications resources. The chapter also covers some of the features and capabilities of bots and the Groove Enterprise Integration Server.
  • Chapter 14, "Advanced Topics," continues the ongoing discussion of OSD, particularly redirection and directory structure strategies, and introduces some of the advanced features found in Groove. We explore Groove versioning and its implications for writing tools, and then talk about how to add roles and permissions to your tools, and how to provide overview and context help. We finish by talking about subforms and how they can be used.
  • In Chapter 15, "The Future of Peer-to-Peer," we make some guesses about how peer-to-peer applications will develop in the years to come, and examine the opportunities that will arise for peer-to-peer application programmers.

If you're ready, let's get started!



067232332XP03252002

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020