NAME
ACE_SOCK -
Defines the member functions for the base class of the
ACE_SOCK abstraction.
SYNOPSIS
#include <ace/SOCK.h>
class ACE_SOCK : public ACE_IPC_SAP
{
public:
int open (int type, int protocol_family, int protocol);
int set_option (
int level,
int option,
void *optval,
int optlen
) const;
int get_option (
int level,
int option,
void *optval,
int *optlen
) const;
int close (void);
int get_local_addr (ACE_Addr &) const;
int get_remote_addr (ACE_Addr &) const;
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;
static int win32_init (int version_high, int version_low);
static int win32_fini (void);
protected:
ACE_SOCK (void);
ACE_SOCK (int type, int protocol_family, int protocol = 0);
static int win32_initialized_;
static ACE_SOCK dummy_;
};
Make this an abstract class.
ACE_SOCK (void);
ACE_SOCK (int type, int protocol_family, int protocol = 0);
Wrapper around the socket() system call.
static int win32_initialized_;
Keeps track of whether we've already initialized WinSock...
static ACE_SOCK dummy_;
Used to ensure we initialize WinSock!
AUTHOR
Doug Schmidt
LIBRARY
ace