#include <SOCK.h>
Inheritance diagram for ACE_SOCK:
Public Member Functions | |
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) |
int | get_local_addr (ACE_Addr &) const |
int | get_remote_addr (ACE_Addr &) const |
void | dump (void) const |
Dump the state of an object. | |
int | open (int type, int protocol_family, int protocol, int reuse_addr) |
Wrapper around the BSD-style <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) |
Wrapper around the QoS-enabled <wsasocket> function. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
Protected Member Functions | |
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 (void) | |
Protected destructor. |
This class provides functions that are common to all of the <ACE_SOCK_*> classes. <ace_sock> provides the ability to get and set socket options, get the local and remote addresses, and open and close a socket handle.
|
Constructor with arguments to call the BSD-style <socket> system call (no QoS). |
|
Constructor with arguments to call the QoS-enabled <wsasocket> function. |
|
Default constructor is protected to prevent instances of this class from being defined. |
|
Protected destructor. Not a virtual destructor. Protected destructor to prevent operator delete() from being called through a base class ACE_SOCK pointer/reference. |
|
Close the socket. This method also sets the object's handle value to ACE_INVALID_HANDLE.
Reimplemented in ACE_MEM_Stream, ACE_SOCK_Acceptor, ACE_SOCK_Dgram_Bcast, ACE_SOCK_SEQPACK_Acceptor, ACE_SOCK_SEQPACK_Association, and ACE_SOCK_Stream. |
|
Dump the state of an object.
Reimplemented from ACE_IPC_SAP. Reimplemented in ACE_ICMP_Socket, ACE_LSOCK_Acceptor, ACE_LSOCK_CODgram, ACE_LSOCK_Dgram, ACE_LSOCK_Stream, ACE_MEM_Acceptor, ACE_MEM_IO, ACE_MEM_Stream, ACE_Ping_Socket, ACE_SOCK_Acceptor, ACE_SOCK_CODgram, ACE_SOCK_Dgram, ACE_SOCK_Dgram_Bcast, ACE_SOCK_Dgram_Mcast, ACE_SOCK_IO, ACE_SOCK_SEQPACK_Acceptor, ACE_SOCK_SEQPACK_Association, and ACE_SOCK_Stream. |
|
Return the local endpoint address in the referenced <ace_addr>. Returns 0 if successful, else -1. Reimplemented in ACE_LSOCK_Acceptor, and ACE_LSOCK_Stream. |
|
Wrapper around the <getsockopt> system call.
|
|
Return the address of the remotely connected peer (if there is one), in the referenced <ace_addr>. Returns 0 if successful, else -1. Reimplemented in ACE_LSOCK_Stream, ACE_SOCK_Acceptor, ACE_SOCK_Dgram, ACE_SOCK_Dgram_Bcast, and ACE_SOCK_SEQPACK_Acceptor. |
|
Wrapper around the QoS-enabled <wsasocket> function.
|
|
Wrapper around the BSD-style <socket> system call (no QoS).
|
|
Wrapper around the <setsockopt> system call.
|
|
Declare the dynamic allocation hooks.
Reimplemented from ACE_IPC_SAP. Reimplemented in ACE_ICMP_Socket, ACE_LSOCK_Acceptor, ACE_LSOCK_CODgram, ACE_LSOCK_Dgram, ACE_LSOCK_Stream, ACE_MEM_Acceptor, ACE_MEM_IO, ACE_MEM_Stream, ACE_Ping_Socket, ACE_SOCK_Acceptor, ACE_SOCK_CODgram, ACE_SOCK_Dgram, ACE_SOCK_Dgram_Bcast, ACE_SOCK_Dgram_Mcast, ACE_SOCK_IO, ACE_SOCK_SEQPACK_Acceptor, ACE_SOCK_SEQPACK_Association, and ACE_SOCK_Stream. |