ACE  6.3.3
Public Member Functions | Public Attributes | Private Attributes | List of all members
ACE_UPIPE_Acceptor Class Reference

Defines the format and interface for the listener side of the ACE_UPIPE_Stream. More...

#include <UPIPE_Acceptor.h>

Inheritance diagram for ACE_UPIPE_Acceptor:
Inheritance graph
[legend]
Collaboration diagram for ACE_UPIPE_Acceptor:
Collaboration graph
[legend]

Public Member Functions

 ACE_UPIPE_Acceptor (void)
 Default constructor. More...
 
 ACE_UPIPE_Acceptor (const ACE_UPIPE_Addr &local_sap, int reuse_addr=0)
 Initialize passive endpoint. More...
 
int open (const ACE_UPIPE_Addr &local_sap, int reuse_addr=0)
 Initialize passive endpoint. More...
 
 ~ACE_UPIPE_Acceptor (void)
 Close down and release resources. More...
 
int close (void)
 Close down and release resources. More...
 
int remove (void)
 
int accept (ACE_UPIPE_Stream &server_stream, ACE_UPIPE_Addr *remote_addr=0, ACE_Time_Value *timeout=0, bool restart=true, bool reset_new_handle=false)
 
void dump (void) const
 Dump the state of an object. More...
 
- Public Member Functions inherited from ACE_SPIPE_Acceptor
 ACE_SPIPE_Acceptor (void)
 Default constructor. More...
 
 ACE_SPIPE_Acceptor (const ACE_SPIPE_Addr &local_sap, int reuse_addr=1, int perms=ACE_DEFAULT_FILE_PERMS, LPSECURITY_ATTRIBUTES sa=0, int pipe_mode=PIPE_TYPE_MESSAGE|PIPE_READMODE_MESSAGE)
 Initiate a passive-mode STREAM pipe listener. More...
 
int open (const ACE_SPIPE_Addr &local_sap, int reuse_addr=1, int perms=ACE_DEFAULT_FILE_PERMS, LPSECURITY_ATTRIBUTES sa=0, int pipe_mode=PIPE_TYPE_MESSAGE|PIPE_READMODE_MESSAGE)
 Initiate a passive-mode STREAM pipe listener. More...
 
int close (void)
 Close down the passive-mode STREAM pipe listener. More...
 
int remove (void)
 Remove the underlying mounted pipe from the file system. More...
 
int accept (ACE_SPIPE_Stream &ipc_sap_spipe, ACE_SPIPE_Addr *remote_addr=0, ACE_Time_Value *timeout=0, bool restart=true, bool reset_new_handle=false)
 
void dump (void) const
 Dump the state of an object. More...
 
- Public Member Functions inherited from ACE_SPIPE
int close (void)
 Close down the SPIPE without removing the rendezvous point. More...
 
int remove (void)
 
int get_local_addr (ACE_SPIPE_Addr &) const
 Return the local address of this endpoint. More...
 
int disable (int signum) const
 
void dump (void) const
 Dump the state of an object. More...
 
- Public Member Functions inherited from ACE_IPC_SAP
int control (int cmd, void *) const
 Interface for <ioctl>. More...
 
int enable (int value) const
 
int disable (int value) const
 
ACE_HANDLE get_handle (void) const
 Get the underlying handle. More...
 
void set_handle (ACE_HANDLE handle)
 Set the underlying handle. 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_SPIPE_Acceptor
 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...
 
- Public Attributes inherited from ACE_SPIPE
 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...
 
- Public Attributes inherited from ACE_IPC_SAP
 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...
 

Private Attributes

ACE_Thread_Manager tm
 Manage threads. More...
 
ACE_Message_Block mb_
 To confirm connection establishment. More...
 

Additional Inherited Members

- Public Types inherited from ACE_SPIPE_Acceptor
typedef ACE_SPIPE_Addr PEER_ADDR
 
typedef ACE_SPIPE_Stream PEER_STREAM
 
- Protected Member Functions inherited from ACE_SPIPE
 ACE_SPIPE (void)
 Ensure that this class is an abstract base class. More...
 
- Protected Member Functions inherited from ACE_IPC_SAP
 ACE_IPC_SAP (void)
 Default constructor. More...
 
 ~ACE_IPC_SAP (void)
 Protected destructor. More...
 
- Protected Attributes inherited from ACE_SPIPE
ACE_SPIPE_Addr local_addr_
 Our local address. More...
 

Detailed Description

Defines the format and interface for the listener side of the ACE_UPIPE_Stream.

Constructor & Destructor Documentation

ACE_UPIPE_Acceptor::ACE_UPIPE_Acceptor ( void  )

Default constructor.

ACE_UPIPE_Acceptor::ACE_UPIPE_Acceptor ( const ACE_UPIPE_Addr local_sap,
int  reuse_addr = 0 
)

Initialize passive endpoint.

ACE_UPIPE_Acceptor::~ACE_UPIPE_Acceptor ( void  )

Close down and release resources.

Member Function Documentation

int ACE_UPIPE_Acceptor::accept ( ACE_UPIPE_Stream server_stream,
ACE_UPIPE_Addr remote_addr = 0,
ACE_Time_Value timeout = 0,
bool  restart = true,
bool  reset_new_handle = false 
)

Accept a new data transfer connection. A timeout of 0 means block forever, a timeout of {0, 0} means poll. restart == 1 means "restart if interrupted."

int ACE_UPIPE_Acceptor::close ( void  )

Close down and release resources.

void ACE_UPIPE_Acceptor::dump ( void  ) const

Dump the state of an object.

int ACE_UPIPE_Acceptor::open ( const ACE_UPIPE_Addr local_sap,
int  reuse_addr = 0 
)

Initialize passive endpoint.

int ACE_UPIPE_Acceptor::remove ( void  )
inline

Close down and release resources and remove the underlying SPIPE rendezvous point.

Member Data Documentation

ACE_UPIPE_Acceptor::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.

ACE_Message_Block ACE_UPIPE_Acceptor::mb_
private

To confirm connection establishment.

ACE_Thread_Manager ACE_UPIPE_Acceptor::tm
private

Manage threads.


The documentation for this class was generated from the following files: