From 5c1001ce4f585836e1f83c28d1df89aee42fb743 Mon Sep 17 00:00:00 2001 From: levine Date: Tue, 20 Oct 1998 02:34:57 +0000 Subject: changed include protection from #if !defined to ifndef, and added #pragma once, if possible --- ace/SOCK_Stream.h | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'ace/SOCK_Stream.h') 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 abstraction. - // + // // = DESCRIPTION // This adds additional wrapper methods atop the // 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 bytes into from (uses // the call). If blocks for longer than the // number of bytes actually sent is returned with . // If a timeout does not occur, return (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 bytes into from (uses // the call). The indicates how long // to blocking trying to receive. If == 0, the caller -- cgit v1.2.1