---
name: "ACE_Time_Request"
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_Time_Request"
---

# ACE\_Time\_Request(3)

Message format for delivering requests to the ACE\_Time Server.

## NAME

ACE\_Time\_Request -  Message format for delivering requests to the ACE\_Time Server.

## SYNOPSIS

```
#include <ACE/ACE_Time_Request_Reply.h>
class ACE_Time_Request
{
  public:
    enum Constants{ TIME_UPDATE = 01, MAX_TIME_LEN = MAXPATHLEN + 1 };
    ACE_Time_Request (void);
    ACE_Time_Request (
        ACE_INT32 msg_type,
        const ACE_UINT32 time,
        ACE_Time_Value *timeout = 0
        );
    void init (void);
    ssize_t size (void) const;
    ACE_INT32 msg_type (void) const;
    void msg_type (ACE_INT32);
    ACE_UINT32 time (void) const;
    void time (ACE_UINT32 t);
    ACE_UINT32 block_forever (void) const;
    void block_forever (ACE_UINT32);
    ACE_Time_Value timeout (void) const;
    void timeout (const ACE_Time_Value timeout);
    int encode (void *&);
    int decode (void);
    void dump (void) const;
  private:
    Transfer transfer_;
    ACE_UINT32 time_;
};
```

## DESCRIPTION

Define the format used to exchange messages between the ACE\_Time\_Server and clerks.

## Set/get the type of the message.

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

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

## Set/get the time

```
ACE_UINT32 time (void) const;
```

```
void time (ACE_UINT32 t);
```

## Set/get the blocking semantics.

```
ACE_UINT32 block_forever (void) const;
```

```
void block_forever (ACE_UINT32);
```

## Set/get the timeout.

```
ACE_Time_Value timeout (void) const;
```

```
void timeout (const ACE_Time_Value timeout);
```

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

Encode the message before transmission.

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

Decode message after reception.

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

Print out the values of the message for debugging purposes.

## AUTHOR

Prashant Jain

## LIBRARY

ACE
