Skip to main content
Skip table of contents

Greeter Example

In this example, we'll demonstrate Ice fundamentals by building a simple greeter application. You'll learn three key concepts:

  1. Using Slice - How to use the Slice IDL to define a custom, application-specific contract between client applications and Ice objects hosted in server applications.

  2. Writing a client - How to write a client that communicates with these Ice objects.

  3. Writing a server - How to write a server that implements and hosts these Ice objects.

This Greeter application's scope is small: a server that hosts a single Ice object, with a single operation that receives names and returns greetings, and a single client that exercises it. Even though this application is simple, it demonstrates best practices and provides a good foundation for starting any Ice project.

You can find the complete source code for this example on Github, alongside several other demo programs.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.