Greeter Example
In this example, we describe how to write a simple client-server application, step by step.
This application is a typical Greeter: a server hosts a Greeter object that produces custom greetings, and the client calls the server to get these greetings. Even though it’s simple, this application demonstrates best practices and provides a good foundation for starting any Ice project.
We present this example in 3 sections:
Using Slice - How to use the Slice IDL to define a contract between clients and servers.
Writing a client - How to write a client that communicates with an Ice server.
Writing a server - How to implement Ice objects and host them in a server.
The complete source code for this example is on Github, alongside several other demo programs.