Reference

ACE_Name_Proxy(3)

Proxy for dealing with remote server process managing NET_LOCAL NameBindings.

NAME

ACE_Name_Proxy - Proxy for dealing with remote server process managing NET_LOCAL NameBindings.

SYNOPSIS

#include <ACE/Name_Proxy.h>
class ACE_Name_Proxy : public ACE_Event_Handler
{
  public:
    ACE_Name_Proxy (void);
    ACE_Name_Proxy (
        const ACE_INET_Addr &remote_addr,
        ACE_Synch_Options& options = ACE_Synch_Options::defaults
        );
    int open (
        const ACE_INET_Addr &remote_addr,
        ACE_Synch_Options& options = ACE_Synch_Options::defaults
        );
    int request_reply (ACE_Name_Request &request);
    int send_request (ACE_Name_Request &request);
    int recv_reply (ACE_Name_Request &reply);
    virtual ACE_HANDLE get_handle (void) const;
    virtual ~ACE_Name_Proxy (void);
    void dump (void) const;
  private:
    ACE_SOCK_Connector connector_;
    ACE_SOCK_Stream peer_;
    ACE_Reactor *reactor_;
};

DESCRIPTION

Proxy for dealing with remote server process managing NET_LOCAL Name_Bindings.

Establish a binding with the ACE_Name Server.

ACE_Name_Proxy (
    const ACE_INET_Addr &remote_addr,
    ACE_Synch_Options& options = ACE_Synch_Options::defaults
    );

int open (
    const ACE_INET_Addr &remote_addr,
    ACE_Synch_Options& options = ACE_Synch_Options::defaults
    );

int request_reply (ACE_Name_Request &request);

Perform the request and wait for the reply.

int send_request (ACE_Name_Request &request);

Perform the request.

int recv_reply (ACE_Name_Request &reply);

Receive the reply.

virtual ACE_HANDLE get_handle (void) const;

Obtain underlying handle.

virtual ~ACE_Name_Proxy (void);

Close down the connection to the server.

void dump (void) const;

Dump the state of the object;

AUTHOR

Gerhard Lenzer, Douglas C. Schmidt, and Prashant Jain

LIBRARY

ACE