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,
        FAILURE = 05,
        MAX_TIME_LEN = MAXPATHLEN + 1 };
        
    ACE_Time_Request (void);
    ACE_Time_Request (
        ACE_UINT32 msg_type,
        const ACE_UINT32 time,
        ACE_Time_Value *timeout = 0
        );
    void init (void);
    ssize_t size (void) const;
    ACE_UINT32 msg_type (void) const;
    void msg_type (ACE_UINT32);
    const ACE_UINT32 time (void) const;
    void time (const 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

This class is implemented to minimize data copying. In particular, all marshaling is done in situ...

Set/get the type of the message.

ACE_UINT32 msg_type (void) const;
void msg_type (ACE_UINT32);

Set/get the time

const ACE_UINT32 time (void) const;
void time (const 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 *&);
int decode (void);
void dump (void) const;

DESCRIPTION

Define the format used to exchange messages between the ACE_Time_Server and clerks.

AUTHOR

Prashant Jain

LIBRARY

ACE