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.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.h')
-rw-r--r-- | ace/SOCK.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/ace/SOCK.h b/ace/SOCK.h index a32ee1cddbb..9edfed18905 100644 --- a/ace/SOCK.h +++ b/ace/SOCK.h @@ -5,33 +5,34 @@ // // = LIBRARY // ace -// +// // = FILENAME // SOCK.h // // = AUTHOR -// Doug Schmidt -// +// Doug Schmidt +// //============================================================================ #ifndef ACE_SOCK_H #define ACE_SOCK_H #include "ace/ACE.h" -#include "ace/Addr.h" -#include "ace/IPC_SAP.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) -#pragma once +# pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ +#include "ace/Addr.h" +#include "ace/IPC_SAP.h" + class ACE_Export ACE_SOCK : public ACE_IPC_SAP { // = TITLE // An abstract class which forms the basis for more specific // classes (such as ACE_SOCK_Acceptor and ACE_SOCK_Connector). // Do not instantiate this class. - // + // // = DESCRIPTION // This class provides functions that are common to all of the // SOCK-type classes. ACE_SOCK provides the ability to get and @@ -41,15 +42,15 @@ public: ~ACE_SOCK (void); // Default ctor/dtor. - int set_option (int level, - int option, - void *optval, + int set_option (int level, + int option, + void *optval, int optlen) const; // Wrapper around the setsockopt() system call. - int get_option (int level, - int option, - void *optval, + int get_option (int level, + int option, + void *optval, int *optlen) const; // Wrapper around the getsockopt() system call. @@ -70,17 +71,17 @@ public: ACE_ALLOC_HOOK_DECLARE; // Declare the dynamic allocation hooks. - int open (int type, - int protocol_family, + int open (int type, + int protocol_family, int protocol, int reuse_addr); // Wrapper around the <socket> system call. protected: ACE_SOCK (int type, - int protocol_family, + int protocol_family, int protocol = 0, - int reuse_addr = 0); + int reuse_addr = 0); // Constructor with arguments to call the <socket> system call. ACE_SOCK (void); |