Skip to content

Commit 004a968

Browse files
committed
Review fixes
1 parent 4741c51 commit 004a968

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

cpp/IceBox/hello/HelloServiceI.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "HelloI.h"
55

66
#include <Ice/Ice.h>
7+
78
#include <iostream>
89

910
using namespace std;
@@ -13,14 +14,14 @@ extern "C"
1314
//
1415
// Factory function
1516
//
16-
ICE_DECLSPEC_EXPORT IceBox::Service* create(const shared_ptr<Ice::Communicator>&) { return new HelloServiceI; }
17+
ICE_DECLSPEC_EXPORT IceBox::Service* create(const Ice::CommunicatorPtr&) { return new HelloServiceI; }
1718
}
1819

1920
void
2021
HelloServiceI::start(
2122
const string& name,
22-
const shared_ptr<Ice::Communicator>& communicator,
23-
const Ice::StringSeq& /*args*/)
23+
const Ice::CommunicatorPtr& communicator,
24+
const Ice::StringSeq&)
2425
{
2526
_adapter = communicator->createObjectAdapterWithEndpoints("Hello", "tcp -p 10000:udp -p 10000");
2627
_adapter->add(make_shared<HelloI>(), Ice::stringToIdentity("hello"));

cpp/IceBox/hello/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,23 @@ cmake --build build --config Release
99

1010
To run this demo, open two terminal windows. In the first window:
1111

12+
**Linux:**
13+
14+
```shell
15+
LD_LIBRARY_PATH=./build icebox --IceBox.Service.Hello="HelloService:create"
16+
```
17+
1218
**Linux/macOS:**
1319

1420
```shell
15-
icebox --IceBox.Service.Hello="./build/HelloService:create"
21+
DYLD_LIBRARY_PATH=./build icebox --IceBox.Service.Hello="HelloService:create"
1622
```
1723

1824
**Windows:**
1925

2026
```shell
21-
icebox --IceBox.Service.Hello="./build/Release/HelloService:create"
27+
set PATH=%PATH%;./build/Release
28+
icebox --IceBox.Service.Hello="HelloService:create"
2229
```
2330

2431
In the second window, run the client:

0 commit comments

Comments
 (0)