Small client side wrapper class for the ICE middleware
More...
#include <Client.h>
|
void | init (int &_argc, char *_argv[], Ice::InitializationData &_initData) |
|
Small client side wrapper class for the ICE middleware
- Author
- Florian Briegel
- Version
- 08.02.22
- Date
- 2008-02-22 15:00:11 Now for a small example:
Nice::Client client (argc, argv);
try
{
HelloPrx printer = client.resolveName < HelloPrx > ("Hello1", 4711);
if (!printer)
throw "Invalid proxy";
printer->printString ("Hello World!");
}
catch (const Ice::Exception & ex)
{
E_LOG (ex);
status = 1;
}
catch (const char *msg)
{
E_LOG (msg);
status = 1;
}
Better style to create the client is using an ICE smart pointer: Nice::ClientPtr client = new Client(argc, argv);
- Todo:
◆ Client() [1/4]
◆ Client() [2/4]
Client::Client |
( |
int & |
_argc, |
|
|
char * |
_argv[] |
|
) |
| |
◆ Client() [3/4]
Client::Client |
( |
const Ice::CommunicatorPtr & |
_communicator | ) |
|
Constructor for use with an existing Communicator.
◆ Client() [4/4]
Nice::Client::Client |
( |
const Ice::CommunicatorPtr & |
_communicator, |
|
|
const std::string & |
_con |
|
) |
| |
◆ ~Client()
virtual Nice::Client::~Client |
( |
| ) |
|
|
inlinevirtual |
Destructor unbelievable :)
◆ communicator()
const Ice::CommunicatorPtr& Nice::Client::communicator |
( |
| ) |
|
|
inline |
Extended helper class,.
- Parameters
-
name | OBJECTSTRING |
host | Hostname of the object |
port | Portname of the adapter the object is bound to |
proto | Optional parameter protocol lipclTCP, lipclSSH, lipclUDPExtended helper class, |
name | lipclOBJECTSTRING |
port | Portname of the adapter the object is bound to |
proto | Optional parameter protocol TCP, lipclSSH, UDPReturn the communicator that is used. |
◆ init()
void Client::init |
( |
int & |
_argc, |
|
|
char * |
_argv[], |
|
|
Ice::InitializationData & |
_initData |
|
) |
| |
|
protected |
◆ m_communicator
Ice::CommunicatorPtr Nice::Client::m_communicator |
|
protected |
◆ m_logger
Ice::LoggerPtr Nice::Client::m_logger |
|
protected |
◆ m_mutex
◆ status
The documentation for this class was generated from the following files:
- TwiceAsNice/nice/src/libNice/Nice/App/Client.h
- TwiceAsNice/nice/src/libNice/Nice/App/Client.cc