This preview shows page 1-2-3-4-5-6-7-8-9-10-11-12-84-85-86-87-88-89-90-91-92-93-94-95-169-170-171-172-173-174-175-176-177-178-179-180 out of 180 pages.
The BasicsAbout This DocumentIntroductionProgramming ModelE-speak ServicesService ContractsService VocabulariesEspeak System ServicesClient-Service InteractionA Simple ExampleClient Service DiscoveryClient Service UsageService CreationComplete ExampleBasic ServicesGetting Connected to E-speakESConnectionConnection ConfigurationE-speak ServicesESContractESVocabularyClient: Finding ServicesESContractFinderESVocabularyFinderESServiceFinderESQueryFinding Services Using XQLQueries in Multiple VocabulariesUsing IntrospectionService Deployer: Creating ServicesService DescriptionXML Descriptions of ServicesRegistering and Starting ServicesCreating Services Described in Multiple VocabulariesRestarting Existing ServicesRegistering Vocabularies and ContractsAccessing Descriptions: ESAccessorExtended ServicesManaging Bindings Using FoldersCreating FoldersCreating and Finding Folders with DescriptionsNavigating FoldersScopesRepository ViewsCategoriesDelegatorsCommunitiesAdvertising across internet and locallySetting Current CommunityAdvertising to GroupsFinding in CommunitiesSecurityMasksAuthorizing AccessExampleRemote Connection ManagerEventsEvent ModelSubscribing to EventsPublishing EventsDistributing EventsList of Service EventsList of Core-Generated EventsThread-Safe Programming: ESThreadMessaging ClassesIDL CompilerGenerating codeInput FilesService DescriptionType DescriptionOutput FilesInterface FileStub FileMessage Registry FileType FileCommand Line ParametersIDL RequirementsDescription in ESIDL fileDescription in Java fileInterceptorsAccount ManagerProgramming ModelProfile DescriptionAccount ProfileAccount ManagerA Simple ExampleE-speak SecurityIntroductionThe Basic Security ModelPSE’s and CertificatesPSE ManagerBootstrap process for testingConfiguration filesProperty file syntaxProperty conversionArgument specificationsSecurity propertiesExample config.cfg fileFirewall TraversalArchitectureDeployment using HTTP proxiesDeployment using SOCKS ServerConnectorManagementIntroductionManaged Service ModelManaged Life CycleState DescriptionsInputsManaged Variable TablesSystem Management EventsManaged Service Programmers GuideWriting a Simple Managed ServiceProgrammer’s GuideDeveloper Release 3.01June 2000COPYRIGHT NOTICE© 2000 HEWLETT-PACKARD COMPANYTo anyone who acknowledges that this document is provided "AS IS" WITH NO EXPRESS OR IMPLIED WARRANTY: permission to copy, modify, and distribute this document for any purpose is hereby granted without fee, provided that the above copyright notice and this notice appear in all copies, and that the name of Hewlett-Packard Company not be used in advertising or publicity pertaining to distribution of this document without specific, written prior permission. Hewlett-Packard Company makes no representations about the suitability of this document for any purpose.Developer Release 3.01 June 2000iContentsChapter 1 The Basics. . . . . . . . . . . . . . . . . . . . . . . . . . . . 1About This Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2Programming Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5A Simple Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10Chapter 2 Basic Services . . . . . . . . . . . . . . . . . . . . . . . . .19Getting Connected to E-speak . . . . . . . . . . . . . . . . . . . . . . 19E-speak Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23Client: Finding Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Service Deployer: Creating Services . . . . . . . . . . . . . . . . . 41Service Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42Accessing Descriptions: ESAccessor . . . . . . . . . . . . . . . . . 67Chapter 3 Extended Services . . . . . . . . . . . . . . . . . . . . . .71Managing Bindings Using Folders . . . . . . . . . . . . . . . . . . . 71iiDeveloper Release 3.01 June 2000Repository Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79Categories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80Communities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100Appendix A Thread-Safe Programming: ESThread. . . . . . . . 109Appendix B Messaging Classes . . . . . . . . . . . . . . . . . . . . 113Appendix C IDL Compiler . . . . . . . . . . . . . . . . . . . . . . . . 115Generating code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115Input Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116Output Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117Command Line Parameters . . . . . . . . . . . . . . . . . . . . . . . . 117IDL Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118Appendix D Interceptors. . . . . . . . . . . . . . . . . . . . . . . . . 121Appendix E Account Manager . . . . . . . . . . . . . . . . . . . . . 125Programming Model . . . . . . . . . . . . . . . . . . . . . . . . . …
View Full Document