| 
    ACE
    6.2.4
    
   | 
 
Defines a C++ wrapper facade for the shared memory transport address family format. More...
#include <MEM_Addr.h>


Public Member Functions | |
| ACE_MEM_Addr (void) | |
| Default constructor.  More... | |
| ACE_MEM_Addr (const ACE_MEM_Addr &) | |
| Copy constructor.  More... | |
| ACE_MEM_Addr (u_short port_number) | |
| Creates an ACE_MEM_Addr from a port_number.  More... | |
| ACE_MEM_Addr (const ACE_TCHAR port_name[]) | |
| Creates an ACE_MEM_Addr from a port_name.  More... | |
| ~ACE_MEM_Addr (void) | |
| Default dtor.  More... | |
| int | initialize_local (u_short port) | 
| Default initialization routine.  More... | |
| int | same_host (const ACE_INET_Addr &sap) | 
| Check if sap designates an endpoint on the same host.  More... | |
| int | set (u_short port_number, int encode=1) | 
| int | set (const ACE_TCHAR port_name[]) | 
| virtual void * | get_addr (void) const | 
| Return a pointer to the underlying network address.  More... | |
| virtual void | set_addr (void *, int len) | 
| Set a pointer to the address.  More... | |
| virtual int | addr_to_string (ACE_TCHAR buffer[], size_t size, int ipaddr_format=1) const | 
| virtual int | string_to_addr (const ACE_TCHAR address[]) | 
| Initializes the external ACE_MEM_Addr from the address.  More... | |
| void | set_port_number (u_short, int encode=1) | 
| Sets the port number.  More... | |
| u_short | get_port_number (void) const | 
| Return the port number, converting it into host byte order.  More... | |
| int | get_host_name (ACE_TCHAR hostname[], size_t hostnamelen) const | 
| Return the character representation of the hostname.  More... | |
| const char * | get_host_name (void) const | 
| const char * | get_host_addr (void) const | 
| Return the "dotted decimal" external address.  More... | |
| ACE_UINT32 | get_ip_address (void) const | 
| const ACE_INET_Addr & | get_remote_addr (void) const | 
| const ACE_INET_Addr & | get_local_addr (void) const | 
| bool | operator== (const ACE_MEM_Addr &SAP) const | 
| bool | operator== (const ACE_INET_Addr &SAP) const | 
| bool | operator!= (const ACE_MEM_Addr &SAP) const | 
| Compare two addresses for inequality.  More... | |
| bool | operator!= (const ACE_INET_Addr &SAP) const | 
| virtual u_long | hash (void) const | 
| Computes and returns hash value.  More... | |
| void | dump (void) const | 
| Dump the state of an object.  More... | |
  Public Member Functions inherited from ACE_Addr | |
| ACE_Addr (int type=-1, int size=-1) | |
| Initializes instance variables.  More... | |
| virtual | ~ACE_Addr (void) | 
| Destructor.  More... | |
| int | get_size (void) const | 
| Return the size of the address.  More... | |
| void | set_size (int size) | 
| Sets the size of the address.  More... | |
| int | get_type (void) const | 
| Get the type of the address.  More... | |
| void | set_type (int type) | 
| Set the type of the address.  More... | |
| bool | operator== (const ACE_Addr &sap) const | 
| Check for address equality.  More... | |
| bool | operator!= (const ACE_Addr &sap) const | 
| Check for address inequality.  More... | |
| void | base_set (int type, int size) | 
| Initializes instance variables.  More... | |
| void | dump (void) const | 
| Dump the state of an object.  More... | |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks.  More... | |
  Public Attributes inherited from ACE_Addr | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks.  More... | |
Private Attributes | |
| ACE_INET_Addr | external_ | 
| External INET addr used for identifying host.  More... | |
| ACE_INET_Addr | internal_ | 
| Internal INET addr for accepting/connecting.  More... | |
Additional Inherited Members | |
  Static Public Attributes inherited from ACE_Addr | |
| static const ACE_Addr | sap_any | 
| Wild-card address.  More... | |
  Protected Attributes inherited from ACE_Addr | |
| int | addr_type_ | 
| e.g., AF_UNIX, AF_INET, AF_SPIPE, etc.  More... | |
| int | addr_size_ | 
| Number of bytes in the address.  More... | |
Defines a C++ wrapper facade for the shared memory transport address family format.
| ACE_MEM_Addr::ACE_MEM_Addr | ( | void | ) | 
Default constructor.
| ACE_MEM_Addr::ACE_MEM_Addr | ( | const ACE_MEM_Addr & | sa | ) | 
Copy constructor.
| ACE_MEM_Addr::ACE_MEM_Addr | ( | u_short | port_number | ) | 
Creates an ACE_MEM_Addr from a port_number.
      
  | 
  explicit | 
Creates an ACE_MEM_Addr from a port_name.
| ACE_MEM_Addr::~ACE_MEM_Addr | ( | void | ) | 
Default dtor.
      
  | 
  virtual | 
Transform the external ACE_MEM_Addr address into string format.
| void ACE_MEM_Addr::dump | ( | void | ) | const | 
Dump the state of an object.
      
  | 
  virtual | 
Return a pointer to the underlying network address.
Reimplemented from ACE_Addr.
      
  | 
  inline | 
Return the "dotted decimal" external address.
| int ACE_MEM_Addr::get_host_name | ( | ACE_TCHAR | hostname[], | 
| size_t | hostnamelen | ||
| ) | const | 
Return the character representation of the hostname.
| const char * ACE_MEM_Addr::get_host_name | ( | void | ) | const | 
Return the character representation of the hostname (this version is non-reentrant since it returns a pointer to a static data area).
      
  | 
  inline | 
Return the 4-byte external IP address, converting it into host byte order.
      
  | 
  inline | 
      
  | 
  inline | 
Return the port number, converting it into host byte order.
      
  | 
  inline | 
      
  | 
  virtual | 
Computes and returns hash value.
Reimplemented from ACE_Addr.
| int ACE_MEM_Addr::initialize_local | ( | u_short | port | ) | 
Default initialization routine.
      
  | 
  inline | 
Compare two addresses for inequality.
      
  | 
  inline | 
      
  | 
  inline | 
Compare two addresses for equality. The addresses are considered equal if they contain the same IP address and port number.
      
  | 
  inline | 
| int ACE_MEM_Addr::same_host | ( | const ACE_INET_Addr & | sap | ) | 
Check if sap designates an endpoint on the same host.
      
  | 
  inline | 
Initializes an ACE_MEM_Addr from a port_number. If encode is enabled then port_number is converted into network byte order, otherwise it is assumed to be in network byte order already and are passed straight through.
      
  | 
  inline | 
Uses <getservbyname> to initialize an ACE_MEM_Addr from a port_name, the remote <host_name>, and the <protocol>.
      
  | 
  virtual | 
Set a pointer to the address.
Reimplemented from ACE_Addr.
      
  | 
  inline | 
Sets the port number.
      
  | 
  virtual | 
Initializes the external ACE_MEM_Addr from the address.
| ACE_MEM_Addr::ACE_ALLOC_HOOK_DECLARE | 
Declare the dynamic allocation hooks.
      
  | 
  private | 
External INET addr used for identifying host.
      
  | 
  private | 
Internal INET addr for accepting/connecting.
 1.8.6