Skip to content

Conversation

@bernardnormier
Copy link
Member

This PR adds a new IceBox/greeter demo, derived from Ice/greeter and IceBox/hello.

@@ -0,0 +1,18 @@
// Copyright (c) ZeroC, Inc.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greeter.ice, Chatbot.h and Chatbot.cpp are exact copies of the files in Ice/greeter.


using namespace std;

int
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A simplified version of the Ice/greeter client. You can also use the Greeter client if you like.


#include <IceBox/IceBox.h>

namespace GreeterServer
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the same namespace as Chatbot (GreeterServer).


void
GreeterServer::GreeterService::start(
const string& name,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think name is also unused here. I need to enable build warnings tomorrow.

**Linux:**

```shell
LD_LIBRARY_PATH=./build icebox --IceBox.Service.Greeter="GreeterService:create --Ice.Trace.Dispatch"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be --Ice.Trace.Dispatch=1?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=1 is the default.

@bernardnormier bernardnormier merged commit 5d55ea1 into zeroc-ice:main Feb 7, 2025
7 checks passed
@bernardnormier bernardnormier deleted the icebox-greeter branch June 18, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants