Debian Codegraph @

netsvcs/clients/Naming/Client/Client_Test.h

raw symbols SCIP
1 // -*- C++ -*-
2 #include "ace/Event_Handler.h"
3 #include "ace/Naming_Context.h"
4
5 #if !defined (ACE_LACKS_PRAGMA_ONCE)
6 # pragma once
7 #endif /* ACE_LACKS_PRAGMA_ONCE */
8
9 class Client_Test : public ACE_Event_Handler
10 {
11 public:
12 Client_Test ();
13
14 int open ();
15 // Cache reactor and then register self with reactor
16
17 int close ();
18 // Close things down and free up resources.
19
20 virtual int handle_input (ACE_HANDLE handle);
21 // Handle user entered commands
22
23 void list_options ();
24 // Print name options
25
26 int bind (const char *key,
27 const char *value,
28 const char *type = "");
29 // Bind a key to a value
30
31 int unbind (const char *key);
32 // Unbind a name binding
33
34 int rebind (const char *key,
35 const char *value,
36 const char *type = "");
37 // Rebind a name binding
38
39 int find (const char *key);
40 // Find the value associated with a key
41
42 int list_names (const char *pattern);
43 // Find all names that match pattern
44
45 int list_values (const char *pattern);
46 // Find all values that match pattern
47
48 int list_types (const char *pattern);
49 // Find all types that match pattern
50
51 int list_name_entries (const char *pattern);
52 // Find all names that match pattern
53
54 int list_value_entries (const char *pattern);
55 // Find all values that match pattern
56
57 int list_type_entries (const char *pattern);
58 // Find all types that match pattern
59
60 private:
61 ACE_Name_Options *name_options_;
62 // Name Options associated with the Naming Context
63
64 void display_menu ();
65 // Display user menu
66
67 int set_proc_local ();
68 // Set options to use PROC_LOCAL naming context
69
70 int set_node_local ();
71 // Set options to use NODE_LOCAL naming context
72
73 int set_host (const char *hostname, int port);
74 // Set options to use NET_LOCAL naming context specifying host name
75 // and port number
76 };