Reference

ACE_Name_Options(3)

Manages the options for the ACE Name_Server.

NAME

ACE_Name_Options - Manages the options for the ACE Name_Server.

SYNOPSIS

#include <ACE/Naming_Context.h>
class ACE_Name_Options
{
  public:
    ACE_Name_Options (void);
    ~ACE_Name_Options (void);
    void parse_args (int argc, ASYS_TCHAR *argv[]);
    void nameserver_port (int port);
    int nameserver_port (void);
    ACE_Naming_Context::Context_Scope_Type context (void);
    void context (ACE_Naming_Context::Context_Scope_Type);
    void nameserver_host (const ASYS_TCHAR *host);
    const ASYS_TCHAR *nameserver_host (void);
    void namespace_dir (LPCTSTR dir);
    LPCTSTR namespace_dir (void);
    void process_name (LPCTSTR dir);
    LPCTSTR process_name (void);
    void database (LPCTSTR);
    LPCTSTR database (void);
    void base_address (char *address);
    char *base_address (void);
    int use_registry (void);
    void use_registry (int);
    int debug (void);
    int verbose (void);
  private:
    int debugging_;
    int verbosity_;
    int use_registry_;
    int nameserver_port_;
    const ASYS_TCHAR *nameserver_host_;
    LPCTSTR namespace_dir_;
    LPCTSTR process_name_;
    LPCTSTR database_;
    char *base_address_;
    ACE_Naming_Context::Context_Scope_Type context_;
};

Initialization and termination methods.

ACE_Name_Options (void);

~ACE_Name_Options (void);

void parse_args (int argc, ASYS_TCHAR *argv[]);

Parse arguments.

Set/Get port number

void nameserver_port (int port);

int nameserver_port (void);

Set/Get the context

ACE_Naming_Context::Context_Scope_Type context (void);

void context (ACE_Naming_Context::Context_Scope_Type);

Set/Get host name

void nameserver_host (const ASYS_TCHAR *host);

const ASYS_TCHAR *nameserver_host (void);

Set/Get name space directory

void namespace_dir (LPCTSTR dir);

LPCTSTR namespace_dir (void);

Set/Get process name

void process_name (LPCTSTR dir);

LPCTSTR process_name (void);

Set/Get database name

void database (LPCTSTR);

LPCTSTR database (void);

Set/Get base address of the underlying allocator

void base_address (char *address);

char *base_address (void);

Set/Get use of registry in naming

int use_registry (void);

void use_registry (int);

int debug (void);

Return debug status

int verbose (void);

Return verbose status

AUTHOR

Gerhard Lenzer, Douglas C. Schmidt, and Prashant Jain

LIBRARY

ACE