ACE_SOCK_Acceptor and ACE_SOCK_Stream.
Do not instantiate this class.
#include <ace/SOCK.h>
class ACE_SOCK : public ACE_IPC_SAP {
public:~ACE_SOCK (void);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;int open ( int type, int protocol_family, int protocol, int reuse_addr );int open ( int type, int protocol_family, int protocol, ACE_Protocol_Info *protocolinfo, ACE_SOCK_GROUP g, u_long flags, int reuse_addr );protected:ACE_SOCK ( int type, int protocol_family, int protocol = 0, int reuse_addr = 0 );ACE_SOCK ( int type, int protocol_family, int protocol, ACE_Protocol_Info *protocolinfo, ACE_SOCK_GROUP g, u_long flags, int reuse_addr );ACE_SOCK (void);};
ACE_SOCK_* classes. ACE_SOCK provides the ability to get
and set socket options, get the local and remote addresses,
and close the socket.
~ACE_SOCK (void);
int set_option (
int level,
int option,
void *optval,
int optlen
) const;
setsockopt system call.
int get_option (
int level,
int option,
void *optval,
int *optlen
) const;
getsockopt system call.
int close (void);
int get_local_addr (ACE_Addr &) const;
ACE_Addr.
Returns 0 if successful, else -1.
int get_remote_addr (ACE_Addr &) const;
ACE_Addr. Returns 0 if successful, else
-1.
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;
int open (
int type,
int protocol_family,
int protocol,
int reuse_addr
);
socket system call (no QoS).
int open (
int type,
int protocol_family,
int protocol,
ACE_Protocol_Info *protocolinfo,
ACE_SOCK_GROUP g,
u_long flags,
int reuse_addr
);
WSASocket function.
ACE_SOCK (
int type,
int protocol_family,
int protocol = 0,
int reuse_addr = 0
);
socket system
call (no QoS).
ACE_SOCK (
int type,
int protocol_family,
int protocol,
ACE_Protocol_Info *protocolinfo,
ACE_SOCK_GROUP g,
u_long flags,
int reuse_addr
);
WSASocket
function.
ACE_SOCK (void);