File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 44#include  " HelloI.h" 
55
66#include  < Ice/Ice.h> 
7+ 
78#include  < iostream> 
89
910using  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
1920void 
2021HelloServiceI::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" 
Original file line number Diff line number Diff line change @@ -9,16 +9,23 @@ cmake --build build --config Release
99
1010To 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
2431In the second window, run the client:
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments