summaryrefslogtreecommitdiff
path: root/TAO/examples/ior_corbaloc/ior_corbaloc_client_i.h
blob: 06a659ec6dff852609ab7fe55ea1db9ac2ad648c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// -*- C++ -*-

//=============================================================================
/**
 *  @file    ior_corbaloc_client_i.h
 *
 *  This class implements a simple client which sends a corbaloc:
 *  style url to the server and gets a response from the
 *  server to indicate that the server has received the request.
 *
 *
 *  @author Priyanka Gontla <pgontla@ece.uci.edu>
 */
//=============================================================================


#if !defined (IOR_CORBALOC_CLIENT_I_H)
#define IOR_CORBALOC_CLIENT_I_H

#include "corbalocC.h"
#include "orbsvcs/CosNamingC.h"

#include "ace/SString.h"

/**
 * @class IOR_corbaloc_Client_i
 *
 * @brief NContextExt Client Implementation
 *
 */
class IOR_corbaloc_Client_i
{

 public:
  // = Constructor and destructor.
  IOR_corbaloc_Client_i (void);
  ~IOR_corbaloc_Client_i (void);

  /// Execute the client example code.
  int run (void);

  /// Initialize the client communication endpoint with the server.
  int init (int& argc, ACE_TCHAR *argv[]);

 private:
  /// corbaloc url to test
  ACE_TString corbaloc_url_;

  /// Naming context
  CosNaming::NamingContextExt_var naming_context_;
};

#endif /* IOR_CORBALOC_CLIENT_I_H */