---
name: "ACE_Name_Proxy"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_Name_Proxy"
---

# 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
