summaryrefslogtreecommitdiff
path: root/ace/Time_Request_Reply.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-20 02:34:57 +0000
commit5c1001ce4f585836e1f83c28d1df89aee42fb743 (patch)
tree5967e9ca7d44ed1d2823be9746817ebb8e025f5d /ace/Time_Request_Reply.h
parent2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff)
downloadATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'ace/Time_Request_Reply.h')
-rw-r--r--ace/Time_Request_Reply.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/ace/Time_Request_Reply.h b/ace/Time_Request_Reply.h
index d92faa0f9ee..90e3f3b3e10 100644
--- a/ace/Time_Request_Reply.h
+++ b/ace/Time_Request_Reply.h
@@ -6,36 +6,37 @@
//
// = LIBRARY
// ACE
-//
+//
// = FILENAME
// ACE_Time_Request_Reply.h
//
-// = DESCRIPTION
-// Define the format used to exchange messages between the
+// = DESCRIPTION
+// 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/Time_Value.h"
-#include "ace/SString.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
-#pragma once
+# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
+#include "ace/SString.h"
+
class ACE_Export ACE_Time_Request
{
// = TITLE
// Message format for delivering requests to the ACE_Time Server.
//
// = DESCRIPTION
- // This class is implemented to minimize data copying.
+ // This class is implemented to minimize data copying.
// In particular, all marshaling is done in situ...
public:
enum Constants
@@ -51,9 +52,9 @@ public:
// Default constructor.
ACE_Time_Request (ACE_INT32 msg_type, // Type of request.
- const ACE_UINT32 time,
- ACE_Time_Value *timeout = 0); // Max time waiting for request.
- // Create a <ACE_Time_Request> message.
+ const ACE_UINT32 time,
+ ACE_Time_Value *timeout = 0); // Max time waiting for request.
+ // Create a <ACE_Time_Request> message.
void init (void);
// Initialize length_ in order to ensure correct byte ordering
@@ -61,7 +62,7 @@ public:
// Get the fixed size of message
ssize_t size (void) const;
-
+
// = Set/get the type of the message.
ACE_INT32 msg_type (void) const;
void msg_type (ACE_INT32);
@@ -88,7 +89,7 @@ public:
// Print out the values of the message for debugging purposes.
private:
- // = The 5 fields in the <Transfer> struct are transmitted to the server.
+ // = 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.
@@ -98,7 +99,7 @@ private:
// Type of the request (i.e., <TIME_UPDATE>)
ACE_UINT32 block_forever_;
- // Indicates if we should block forever. If 0, then <secTimeout_>
+ // Indicates if we should block forever. If 0, then <secTimeout_>
// and <usecTimeout_> indicates how long we should wait.
ACE_UINT32 sec_timeout_;