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 /ace/SOCK_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 'ace/SOCK_Stream.h')
-rw-r--r-- | ace/SOCK_Stream.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/ace/SOCK_Stream.h b/ace/SOCK_Stream.h index 862d46d2bc8..1eb5fd3a3bd 100644 --- a/ace/SOCK_Stream.h +++ b/ace/SOCK_Stream.h @@ -5,30 +5,31 @@ // // = LIBRARY // ace -// +// // = FILENAME // SOCK_Stream.h // // = AUTHOR -// Doug Schmidt -// +// Doug Schmidt +// // ============================================================================ #ifndef ACE_SOCK_STREAM_H #define ACE_SOCK_STREAM_H #include "ace/SOCK_IO.h" -#include "ace/INET_Addr.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) -#pragma once +# pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ +#include "ace/INET_Addr.h" + class ACE_Export ACE_SOCK_Stream : public ACE_SOCK_IO { // = TITLE // Defines the methods in the <ACE_SOCK_Stream> abstraction. - // + // // = DESCRIPTION // This adds additional wrapper methods atop the <ACE_SOCK_IO> // class. @@ -40,29 +41,29 @@ public: //= The following two methods use write and read system calls. ssize_t send_n (const void *buf, int n) const; // Send n bytes, keep trying until n are sent. - ssize_t recv_n (void *buf, int n) const; + ssize_t recv_n (void *buf, int n) const; // Recv n bytes, keep trying until n are received. // = The following two methods use the send and recv system calls. ssize_t send_n (const void *buf, int n, int flags) const; // Send n bytes, keep trying until n are sent. - ssize_t recv_n (void *buf, int n, int flags) const; + ssize_t recv_n (void *buf, int n, int flags) const; // Recv n bytes, keep trying until n are received. - ssize_t send_n (const void *buf, - size_t len, - int flags, - const ACE_Time_Value *timeout); + ssize_t send_n (const void *buf, + size_t len, + int flags, + const ACE_Time_Value *timeout); // Try to send exactly <len> bytes into <buf> from <handle> (uses // the <send> call). If <send> blocks for longer than <timeout> the // number of bytes actually sent is returned with <errno == ETIME>. // If a timeout does not occur, <send_n> return <len> (i.e., the // number of bytes requested to be sent). - ssize_t recv_n (void *buf, - size_t len, - int flags, - const ACE_Time_Value *timeout); + ssize_t recv_n (void *buf, + size_t len, + int flags, + const ACE_Time_Value *timeout); // Try to recv exactly <len> bytes into <buf> from <handle> (uses // the <ACE::recv_n> call). The <ACE_Time_Value> indicates how long // to blocking trying to receive. If <timeout> == 0, the caller |