---
name: "ACE_Name_Reply"
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_Reply"
---

# ACE\_Name\_Reply(3)

Message format for delivering replies from the ACE\_Name Server.

## NAME

ACE\_Name\_Reply -  Message format for delivering replies from the ACE\_Name Server.

## SYNOPSIS

```
#include <ACE/Name_Request_Reply.h>
class ACE_Name_Reply
{
  public:
    enum Constants{ MAX_NAME_LENGTH = MAXPATHLEN + 1 };
    ACE_Name_Reply (void);
    ACE_Name_Reply (ACE_UINT32 type, ACE_UINT32 err);
    void init (void);
    ACE_UINT32 length (void) const;
    void length (ACE_UINT32);
    ACE_INT32 msg_type (void) const;
    void msg_type (ACE_INT32);
    ACE_INT32 status (void) const;
    void status (ACE_INT32);
    ACE_UINT32 errnum (void) const;
    void errnum (ACE_UINT32);
    int encode (void *&);
    int decode (void);
    void dump (void) const;
  private:
    Transfer transfer_;
};
```

## DESCRIPTION

Define the format used to exchange messages between the ACE\_Name Server and its clients.

## Set/get the length of the encoded/decoded message.

```
ACE_UINT32 length (void) const;
```

```
void length (ACE_UINT32);
```

## Set/get the type of the message.

```
ACE_INT32 msg_type (void) const;
```

```
void msg_type (ACE_INT32);
```

## Set/get the status of the reply (0 == success, -1 == failure).

```
ACE_INT32 status (void) const;
```

```
void status (ACE_INT32);
```

## Set/get the errno of a failed reply.

```
ACE_UINT32 errnum (void) const;
```

```
void errnum (ACE_UINT32);
```

```
int encode (void *&);
```

Encode the message before transfer.

```
int decode (void);
```

Decode a message after reception.

```
void dump (void) const;
```

Print out the values of the message for debugging purposes.

## AUTHOR

Gerhard Lenzer, Douglas C. Schmidt, and Prashant Jain

## LIBRARY

ACE
