Reference

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