diff options
Diffstat (limited to 'ace/SOCK.h')
-rw-r--r-- | ace/SOCK.h | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/ace/SOCK.h b/ace/SOCK.h deleted file mode 100644 index 63583971950..00000000000 --- a/ace/SOCK.h +++ /dev/null @@ -1,86 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -//============================================================================ -// -// = LIBRARY -// ace -// -// = FILENAME -// SOCK.h -// -// = AUTHOR -// Doug Schmidt -// -//============================================================================ - -#if !defined (ACE_SOCK_H) -#define ACE_SOCK_H - -#include "ace/ACE.h" -#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 - // set socket options, get the local and remote addresses, and - // close the socket. -public: - 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 *optlen) const; - // Wrapper around the getsockopt() system call. - - int close (void); - // Close down the socket. - - int get_local_addr (ACE_Addr &) const; - // Return the local endpoint address in the referenced ACE_Addr. - // Returns 0 if successful, else -1. - - int get_remote_addr (ACE_Addr &) const; - // Return the address of the remotely connected peer (if there is - // one), in the referenced ACE_Addr. Returns 0 if successful, else -1. - - void dump (void) const; - // Dump the state of an object. - - ACE_ALLOC_HOOK_DECLARE; - // Declare the dynamic allocation hooks. - - 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 = 0, - int reuse_addr = 0); - // Constructor with arguments to call the <socket> system call. - - ACE_SOCK (void); - // Default constructor is private to prevent instances of this class - // from being defined. -}; - -#include "ace/SOCK.i" - -#endif /* ACE_SOCK_H */ |