diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
commit | 5c1001ce4f585836e1f83c28d1df89aee42fb743 (patch) | |
tree | 5967e9ca7d44ed1d2823be9746817ebb8e025f5d /docs/tutorials/015/Protocol_Stream.h | |
parent | 2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff) | |
download | ATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz |
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'docs/tutorials/015/Protocol_Stream.h')
-rw-r--r-- | docs/tutorials/015/Protocol_Stream.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/tutorials/015/Protocol_Stream.h b/docs/tutorials/015/Protocol_Stream.h index 384e7240e4f..686d39126e0 100644 --- a/docs/tutorials/015/Protocol_Stream.h +++ b/docs/tutorials/015/Protocol_Stream.h @@ -5,6 +5,11 @@ #define PROTOCOL_STREAM_H #include "ace/SOCK_Stream.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + #include "ace/Stream.h" // Shorthand for the stream. @@ -46,18 +51,18 @@ public: _timeout = 0 ); // Tell the Recv task to read some data and send it upstream. - // The data will pass through the protocol tasks and be queued + // The data will pass through the protocol tasks and be queued // into the stream head reader task's message queue. If // you've installed a _reader in open() then that task's // recv() method will see the message and may consume it // instead of passing it to the stream head for queueing. int get(void); - + ACE_SOCK_Stream & peer(void) { return this->peer_; } - + private: // Our peer connection ACE_SOCK_Stream peer_; |