diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-03-05 17:14:45 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-03-05 17:14:45 +0000 |
commit | 58033491c6d0bac82315c1fdb1ec9b39be58093f (patch) | |
tree | c69c3aa67ec66758066e959bd0d533ea336ec236 /ace/Time_Request_Reply.h | |
parent | 2efc882384a34f61311a24fc641d1b5fd5776356 (diff) | |
download | ATCD-TAO-1_5.tar.gz |
This commit was manufactured by cvs2svn to create tag 'TAO-1_5'.TAO-1_5
Diffstat (limited to 'ace/Time_Request_Reply.h')
-rw-r--r-- | ace/Time_Request_Reply.h | 139 |
1 files changed, 0 insertions, 139 deletions
diff --git a/ace/Time_Request_Reply.h b/ace/Time_Request_Reply.h deleted file mode 100644 index 8c062cbd9a5..00000000000 --- a/ace/Time_Request_Reply.h +++ /dev/null @@ -1,139 +0,0 @@ -// -*- C++ -*- - -//============================================================================= -/** - * @file Time_Request_Reply.h - * - * $Id$ - * - * Define the format used to exchange messages between the - * ACE time server and clerks. - * - * @author Prashant Jain - */ -//============================================================================= - - -#ifndef ACE_TIME_REQUEST_REPLY_H -#define ACE_TIME_REQUEST_REPLY_H -#include /**/ "ace/pre.h" - -#include "ace/Time_Value.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -ACE_BEGIN_VERSIONED_NAMESPACE_DECL - -/** - * @class ACE_Time_Request - * - * @brief Message format for delivering requests to the ACE_Time Server. - * - * This class is implemented to minimize data copying. - * In particular, all marshaling is done in situ... - */ -class ACE_Export ACE_Time_Request -{ -public: - enum Constants - { - /// Request message types. - TIME_UPDATE = 01, - - /// Class-specific constant values. - MAX_TIME_LEN = MAXPATHLEN + 1 - }; - - /// Default constructor. - ACE_Time_Request (void); - - /** - * Create a ACE_Time_Request message. - * @param msg_type Type of request. - * @param time Time. - * @param timeout Max time waiting for request. - */ - ACE_Time_Request (ACE_INT32 msg_type, - const ACE_UINT32 time, - ACE_Time_Value *timeout = 0); - - /** - * Initialize length_ in order to ensure correct byte ordering before a - * request is sent. - * @deprecated This method is a no-op. - */ - void init (void); - - // Get the fixed size of message - ssize_t size (void) const; - - /// Get the type of the message. - ACE_INT32 msg_type (void) const; - - /// Set the type of the message. - void msg_type (ACE_INT32); - - /// Get the time - ACE_UINT32 time (void) const; - - // Set the time - void time (ACE_UINT32 t); - - /// Get the blocking semantics. - ACE_UINT32 block_forever (void) const; - - /// Set the blocking semantics. - void block_forever (ACE_UINT32); - - /// Get the timeout. - ACE_Time_Value timeout (void) const; - - /// Set the timeout. - void timeout (const ACE_Time_Value& timeout); - - /// Encode the message before transmission. - int encode (void *&); - - /// Decode message after reception. - int decode (void); - - /// Print out the values of the message for debugging purposes. - void dump (void) const; - -private: - // = The 5 fields in the <Transfer> struct are transmitted to the server. - // The remaining 2 fields are not tranferred -- they are used only on - // the server-side to simplify lookups. - - struct Transfer - { - /// Type of the request (i.e., <TIME_UPDATE>) - ACE_INT32 msg_type_; - - /// Indicates if we should block forever. If 0, then sec_timeout_ - /// and usec_timeout_ indicates how long we should wait. - ACE_UINT32 block_forever_; - - /// Max seconds willing to wait for name if not blocking forever. - ACE_UINT32 sec_timeout_; - - /// Max micro seconds to wait for name if not blocking forever. - ACE_UINT32 usec_timeout_; - - /// The data portion contains <time_> - ACE_UINT32 time_; - }; - - /// Transfer buffer. - Transfer transfer_; - - /// Time - ACE_UINT32 time_; -}; - -ACE_END_VERSIONED_NAMESPACE_DECL - -#include /**/ "ace/post.h" -#endif /* ACE_TIME_REQUEST_REPLY_H */ |