TAO 3.0.9
Public Member Functions | List of all members
TAO_IIOP_Connection_Handler Class Reference

Handles requests on a single connection. More...

#include <IIOP_Connection_Handler.h>

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

Public Member Functions

 TAO_IIOP_Connection_Handler (ACE_Thread_Manager *=0)
 
 TAO_IIOP_Connection_Handler (TAO_ORB_Core *orb_core)
 Constructor. More...
 
 ~TAO_IIOP_Connection_Handler ()
 Destructor. More...
 
virtual int open (void *)
 
int close (u_long=0)
 
Event Handler overloads
virtual int resume_handler ()
 Add ourselves to Cache. More...
 
virtual int close_connection ()
 Add ourselves to Cache. More...
 
virtual int handle_input (ACE_HANDLE)
 Add ourselves to Cache. More...
 
virtual int handle_output (ACE_HANDLE)
 Add ourselves to Cache. More...
 
virtual int handle_close (ACE_HANDLE, ACE_Reactor_Mask)
 Add ourselves to Cache. More...
 
virtual int handle_timeout (const ACE_Time_Value &current_time, const void *act=0)
 Add ourselves to Cache. More...
 
int add_transport_to_cache ()
 Add ourselves to Cache. More...
 
int process_listen_point_list (IIOP::ListenPointList &listen_list)
 Process the listen_list. More...
 
int enable_network_priority ()
 Check if network priority needs to be enabled. More...
 
int set_dscp_codepoint (CORBA::Boolean set_network_priority)
 Set Diff-Serv codepoint on outgoing packets. More...
 
int set_dscp_codepoint (CORBA::Long dscp_codepoint)
 Add ourselves to Cache. More...
 
virtual int open_handler (void *)
 Add ourselves to Cache. More...
 
void abort ()
 
- Public Member Functions inherited from ACE_Svc_Handler< ACE_SOCK_STREAM, ACE_NULL_SYNCH >
 ACE_Svc_Handler (ACE_Thread_Manager *thr_mgr=0, ACE_Message_Queue< SYNCH_TRAITS > *mq=0, ACE_Reactor *reactor=ACE_Reactor::instance())
 
virtual ~ACE_Svc_Handler ()
 
virtual int open (void *acceptor_or_connector=0)
 
virtual int close (u_long flags=0)
 
virtual int idle (u_long flags=0)
 
virtual ACE_Recyclable_State recycle_state () const
 
virtual int recycle_state (ACE_Recyclable_State new_state)
 
virtual void cleanup_hint (void **act_holder=0)
 
virtual int init (int argc, ACE_TCHAR *argv[])
 
virtual int fini ()
 
virtual int info (ACE_TCHAR **info_string, size_t length) const
 
virtual int handle_close (ACE_HANDLE=ACE_INVALID_HANDLE, ACE_Reactor_Mask=ACE_Event_Handler::ALL_EVENTS_MASK)
 
virtual int handle_timeout (const ACE_Time_Value &time, const void *)
 
virtual ACE_HANDLE get_handle () const
 
virtual void set_handle (ACE_HANDLE)
 
PEER_STREAM & peer () const
 
void * operator new (size_t n)
 
void * operator new (size_t n, const std::nothrow_t &)
 
void * operator new (size_t n, void *p)
 
void operator delete (void *p, const std::nothrow_t &)
 
void operator delete (void *)
 
void operator delete (void *, void *)
 
virtual void destroy ()
 
void shutdown ()
 
void dump () const
 
virtual void recycler (ACE_Connection_Recycling_Strategy *recycler, const void *recycling_act)
 
virtual ACE_Connection_Recycling_Strategyrecycler () const
 
virtual const void * recycling_act () const
 
virtual int recycle (void *=0)
 
- Public Member Functions inherited from ACE_Task< SYNCH_TRAITS >
 ACE_Task (ACE_Thread_Manager *thr_mgr=0, ACE_Message_Queue< ACE_SYNCH_USE, TIME_POLICY > *mq=0)
 
virtual ~ACE_Task ()
 
ACE_Message_Queue< ACE_SYNCH_USE, TIME_POLICY > * msg_queue ()
 
void msg_queue (ACE_Message_Queue< ACE_SYNCH_USE, TIME_POLICY > *)
 
ACE_Time_Value_T< TIME_POLICY > gettimeofday () const
 
void set_time_policy (TIME_POLICY const &time_policy)
 
int putq (ACE_Message_Block *, ACE_Time_Value *timeout=0)
 
int getq (ACE_Message_Block *&mb, ACE_Time_Value *timeout=0)
 
int ungetq (ACE_Message_Block *, ACE_Time_Value *timeout=0)
 
int reply (ACE_Message_Block *mb, ACE_Time_Value *tv=0)
 
int put_next (ACE_Message_Block *msg, ACE_Time_Value *timeout=0)
 
const ACE_TCHARname () const
 
virtual ACE_Task< ACE_SYNCH_USE, TIME_POLICY > * next ()
 
void next (ACE_Task< ACE_SYNCH_USE, TIME_POLICY > *)
 
ACE_Task< ACE_SYNCH_USE, TIME_POLICY > * sibling ()
 
ACE_Module< ACE_SYNCH_USE, TIME_POLICY > * module () const
 
virtual int flush (u_long flag=ACE_Task_Flags::ACE_FLUSHALL)
 
void water_marks (ACE_IO_Cntl_Msg::ACE_IO_Cntl_Cmds, size_t)
 
void dump () const
 
- Public Member Functions inherited from ACE_Task_Base
 ACE_Task_Base (ACE_Thread_Manager *=0)
 
virtual ~ACE_Task_Base ()
 
virtual int open (void *args=0)
 
virtual int close (u_long flags=0)
 
virtual int module_closed ()
 
virtual int put (ACE_Message_Block *, ACE_Time_Value *=0)
 
virtual int svc ()
 
virtual int activate (long flags=THR_NEW_LWP|THR_JOINABLE|THR_INHERIT_SCHED, int n_threads=1, int force_active=0, long priority=ACE_DEFAULT_THREAD_PRIORITY, int grp_id=-1, ACE_Task_Base *task=0, ACE_hthread_t thread_handles[]=0, void *stack[]=0, size_t stack_size[]=0, ACE_thread_t thread_ids[]=0, const char *thr_name[]=0)
 
virtual int wait ()
 
virtual int suspend ()
 
virtual int resume ()
 
int grp_id () const
 
void grp_id (int)
 
ACE_Thread_Managerthr_mgr () const
 
void thr_mgr (ACE_Thread_Manager *)
 
int is_reader () const
 
int is_writer () const
 
size_t thr_count () const
 
ACE_thread_t last_thread () const
 
- Public Member Functions inherited from ACE_Service_Object
 ACE_Service_Object (ACE_Reactor *=0)
 
virtual ~ACE_Service_Object ()
 
virtual int suspend ()
 
virtual int resume ()
 
- Public Member Functions inherited from ACE_Event_Handler
virtual ~ACE_Event_Handler ()=default
 
virtual ACE_HANDLE get_handle () const
 
virtual void set_handle (ACE_HANDLE)
 
virtual int priority () const
 
virtual void priority (int priority)
 
virtual int handle_input (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 
virtual int handle_output (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 
virtual int handle_exception (ACE_HANDLE fd=ACE_INVALID_HANDLE)
 
virtual int handle_timeout (const ACE_Time_Value &current_time, const void *act=0)
 
virtual int handle_exit (ACE_Process *)
 
virtual int handle_close (ACE_HANDLE handle, ACE_Reactor_Mask close_mask)
 
virtual int handle_signal (int signum, siginfo_t *=0, ucontext_t *=0)
 
virtual int resume_handler ()
 
virtual int handle_qos (ACE_HANDLE=ACE_INVALID_HANDLE)
 
virtual int handle_group_qos (ACE_HANDLE=ACE_INVALID_HANDLE)
 
virtual void reactor (ACE_Reactor *reactor)
 
virtual ACE_Reactorreactor () const
 
virtual ACE_Reactor_Timer_Interfacereactor_timer_interface () const
 
virtual Reference_Count add_reference ()
 
virtual Reference_Count remove_reference ()
 
Reference_Counting_Policyreference_counting_policy ()
 
- Public Member Functions inherited from ACE_Shared_Object
 ACE_Shared_Object ()
 
virtual ~ACE_Shared_Object ()
 
virtual int init (int argc, ACE_TCHAR *argv[])
 
virtual int fini ()
 
virtual int info (ACE_TCHAR **info_string, size_t length=0) const
 
- Public Member Functions inherited from TAO_Connection_Handler
 TAO_Connection_Handler (TAO_ORB_Core *orb_core)
 Constructor. More...
 
virtual ~TAO_Connection_Handler ()
 Destructor. More...
 
TAO_Transporttransport ()
 Return the underlying transport object. More...
 
void transport (TAO_Transport *transport)
 Set the underlying transport object. More...
 
bool is_closed () const
 Is the handler closed or timed out? More...
 
bool is_open () const
 Is the handler open? More...
 
bool is_timeout () const
 Closed due to timeout? More...
 
bool is_connecting () const
 Is the handler in the process of being connected? More...
 
virtual int close_connection ()=0
 Close the underlying connection. More...
 
virtual int handle_input (ACE_HANDLE fd)=0
 
int svc_i ()
 
virtual int open_handler (void *)=0
 A open () hook. More...
 
virtual int close_handler (u_long flags=0)
 
void connection_pending ()
 
void cancel_pending_connection ()
 
virtual int set_dscp_codepoint (CORBA::Boolean set_network_priority)
 
virtual int set_dscp_codepoint (CORBA::Long dscp_codepoint)
 
virtual int release_os_resources ()
 Release the OS resources related to this handler. More...
 
virtual int handle_write_ready (const ACE_Time_Value *timeout)
 
- Public Member Functions inherited from TAO_LF_CH_Event
 TAO_LF_CH_Event ()
 Constructor. More...
 
virtual ~TAO_LF_CH_Event ()
 Destructor. More...
 
- Public Member Functions inherited from TAO_LF_Event
 TAO_LF_Event ()
 Constructor. More...
 
virtual ~TAO_LF_Event ()
 Destructor. More...
 
virtual int bind (TAO_LF_Follower *follower)
 Bind a follower. More...
 
virtual int unbind (TAO_LF_Follower *follower)
 Unbind the follower. More...
 
void state_changed (LFS_STATE new_state, TAO_Leader_Follower &lf)
 
bool successful (TAO_Leader_Follower &lf) const
 
bool error_detected (TAO_Leader_Follower &lf) const
 
bool keep_waiting (TAO_Leader_Follower &lf) const
 Check if we should keep waiting. More...
 
void reset_state (LFS_STATE new_state)
 Reset the state, irrespective of the previous states. More...
 

TAO_Connection Handler overloads

int dscp_codepoint_
 Stores the type of service value. More...
 
virtual int release_os_resources ()
 Stores the type of service value. More...
 
virtual int handle_write_ready (const ACE_Time_Value *timeout)
 Stores the type of service value. More...
 
int set_tos (int tos)
 

Additional Inherited Members

- Public Types inherited from ACE_Svc_Handler< ACE_SOCK_STREAM, ACE_NULL_SYNCH >
typedef PEER_STREAM::PEER_ADDR addr_type
 
typedef PEER_STREAM stream_type
 
- Public Types inherited from ACE_Event_Handler
typedef long Reference_Count
 
- Public Types inherited from TAO_LF_Event
enum  LFS_STATE {
  LFS_IDLE = 0 , LFS_ACTIVE , LFS_CONNECTION_WAIT , LFS_SUCCESS ,
  LFS_FAILURE , LFS_TIMEOUT , LFS_CONNECTION_CLOSED
}
 The current state. More...
 
- Static Public Member Functions inherited from ACE_Task_Base
static ACE_THR_FUNC_RETURN svc_run (void *)
 
static void cleanup (void *object, void *params)
 
- Static Public Member Functions inherited from ACE_Event_Handler
static ACE_THR_FUNC_RETURN read_adapter (void *event_handler)
 
static int register_stdin_handler (ACE_Event_Handler *eh, ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr, int flags=THR_DETACHED)
 
static int remove_stdin_handler (ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr)
 
- Static Public Member Functions inherited from TAO_LF_Event
static const char * state_name (LFS_STATE st)
 The current state. More...
 
- Public Attributes inherited from ACE_Task< SYNCH_TRAITS >
ACE_Message_Queue< ACE_SYNCH_USE, TIME_POLICY > * msg_queue_
 
bool delete_msg_queue_
 
ACE_Module< ACE_SYNCH_USE, TIME_POLICY > * mod_
 
ACE_Task< ACE_SYNCH_USE, TIME_POLICY > * next_
 
 ACE_ALLOC_HOOK_DECLARE
 
- Public Attributes inherited from ACE_Service_Object
 ACE_ALLOC_HOOK_DECLARE
 
- Public Attributes inherited from ACE_Event_Handler
 LO_PRIORITY
 
 HI_PRIORITY
 
 NULL_MASK
 
 READ_MASK
 
 WRITE_MASK
 
 EXCEPT_MASK
 
 ACCEPT_MASK
 
 CONNECT_MASK
 
 TIMER_MASK
 
 QOS_MASK
 
 GROUP_QOS_MASK
 
 SIGNAL_MASK
 
 ALL_EVENTS_MASK
 
 RWE_MASK
 
 DONT_CALL
 
 ACE_EVENT_HANDLER_NOT_RESUMED
 
 ACE_REACTOR_RESUMES_HANDLER
 
 ACE_APPLICATION_RESUMES_HANDLER
 
- Protected Types inherited from ACE_Event_Handler
typedef std::atomic< Reference_CountAtomic_Reference_Count
 
- Protected Member Functions inherited from ACE_Event_Handler
 ACE_Event_Handler (ACE_Reactor *=nullptr, int priority=ACE_Event_Handler::LO_PRIORITY)
 
- Protected Member Functions inherited from TAO_Connection_Handler
TAO_ORB_Coreorb_core ()
 Return our TAO_ORB_Core pointer. More...
 
int shared_open ()
 
int set_socket_option (ACE_SOCK &sock, int snd_size, int rcv_size)
 Set options on the socket. More...
 
int handle_output_eh (ACE_HANDLE h, ACE_Event_Handler *eh)
 Implement the handle_output() callback. More...
 
int handle_input_eh (ACE_HANDLE h, ACE_Event_Handler *eh)
 Implement the handle_input() callback. More...
 
int handle_input_internal (ACE_HANDLE h, ACE_Event_Handler *eh)
 Pointer to the TAO_ORB_Core. More...
 
int close_connection_eh (ACE_Event_Handler *eh)
 
virtual void pre_io_hook (int &return_value)
 
virtual void pos_io_hook (int &return_value)
 
- Protected Member Functions inherited from TAO_LF_CH_Event
virtual bool is_state_final () const
 Check whether we have reached the final state.. More...
 
- Protected Member Functions inherited from TAO_LF_Event
bool keep_waiting_i () const
 Check if we should keep waiting. More...
 
- Protected Attributes inherited from ACE_Svc_Handler< ACE_SOCK_STREAM, ACE_NULL_SYNCH >
PEER_STREAM peer_
 
bool dynamic_
 
bool closing_
 
ACE_Connection_Recycling_Strategyrecycler_
 
const void * recycling_act_
 
- Protected Attributes inherited from ACE_Task_Base
size_t thr_count_
 
ACE_Thread_Managerthr_mgr_
 
u_long flags_
 
int grp_id_
 
ACE_thread_t last_thread_id_
 
- Protected Attributes inherited from ACE_Event_Handler
Atomic_Reference_Count reference_count_
 
- Protected Attributes inherited from TAO_LF_Event
LFS_STATE state_
 The current state. More...
 
TAO_LF_Followerfollower_
 The bounded follower. More...
 

Detailed Description

Handles requests on a single connection.

The Connection handler which is common for the Acceptor and the Connector

Constructor & Destructor Documentation

◆ TAO_IIOP_Connection_Handler() [1/2]

TAO_IIOP_Connection_Handler::TAO_IIOP_Connection_Handler ( ACE_Thread_Manager t = 0)

◆ TAO_IIOP_Connection_Handler() [2/2]

TAO_IIOP_Connection_Handler::TAO_IIOP_Connection_Handler ( TAO_ORB_Core orb_core)

Constructor.

◆ ~TAO_IIOP_Connection_Handler()

TAO_IIOP_Connection_Handler::~TAO_IIOP_Connection_Handler ( )

Destructor.

Member Function Documentation

◆ abort()

void TAO_IIOP_Connection_Handler::abort ( )

This is used during a canceled connection attempt. Force the SO_LINGER timeout to 0 so that when the peer is closed, it won't hang around.

◆ add_transport_to_cache()

int TAO_IIOP_Connection_Handler::add_transport_to_cache ( )

Add ourselves to Cache.

◆ close()

int TAO_IIOP_Connection_Handler::close ( u_long  flags = 0)
virtual

Close called by the Acceptor or Connector when connection establishment fails.

Reimplemented from ACE_Svc_Handler< ACE_SOCK_STREAM, ACE_NULL_SYNCH >.

◆ close_connection()

int TAO_IIOP_Connection_Handler::close_connection ( )
virtual

Add ourselves to Cache.

Implements TAO_Connection_Handler.

◆ enable_network_priority()

int TAO_IIOP_Connection_Handler::enable_network_priority ( )

Check if network priority needs to be enabled.

◆ handle_close()

int TAO_IIOP_Connection_Handler::handle_close ( ACE_HANDLE  ,
ACE_Reactor_Mask   
)
virtual

Add ourselves to Cache.

Reimplemented from ACE_Svc_Handler< ACE_SOCK_STREAM, ACE_NULL_SYNCH >.

◆ handle_input()

int TAO_IIOP_Connection_Handler::handle_input ( ACE_HANDLE  h)
virtual

Add ourselves to Cache.

Implements TAO_Connection_Handler.

◆ handle_output()

int TAO_IIOP_Connection_Handler::handle_output ( ACE_HANDLE  handle)
virtual

Add ourselves to Cache.

Reimplemented from ACE_Event_Handler.

◆ handle_timeout()

int TAO_IIOP_Connection_Handler::handle_timeout ( const ACE_Time_Value current_time,
const void *  act = 0 
)
virtual

Add ourselves to Cache.

Reimplemented from ACE_Svc_Handler< ACE_SOCK_STREAM, ACE_NULL_SYNCH >.

◆ handle_write_ready()

int TAO_IIOP_Connection_Handler::handle_write_ready ( const ACE_Time_Value timeout)
protectedvirtual

Stores the type of service value.

Reimplemented from TAO_Connection_Handler.

◆ open()

int TAO_IIOP_Connection_Handler::open ( void *  )
virtual

Called by the Strategy_Acceptor when the handler is completely connected. Argument is unused.

Reimplemented from ACE_Svc_Handler< ACE_SOCK_STREAM, ACE_NULL_SYNCH >.

◆ open_handler()

int TAO_IIOP_Connection_Handler::open_handler ( void *  v)
virtual

Add ourselves to Cache.

Implements TAO_Connection_Handler.

◆ process_listen_point_list()

int TAO_IIOP_Connection_Handler::process_listen_point_list ( IIOP::ListenPointList listen_list)

Process the listen_list.

◆ release_os_resources()

int TAO_IIOP_Connection_Handler::release_os_resources ( )
protectedvirtual

Stores the type of service value.

Reimplemented from TAO_Connection_Handler.

◆ resume_handler()

int TAO_IIOP_Connection_Handler::resume_handler ( )
virtual

Add ourselves to Cache.

Reimplemented from ACE_Event_Handler.

◆ set_dscp_codepoint() [1/2]

int TAO_IIOP_Connection_Handler::set_dscp_codepoint ( CORBA::Boolean  set_network_priority)
virtual

Set Diff-Serv codepoint on outgoing packets.

Reimplemented from TAO_Connection_Handler.

◆ set_dscp_codepoint() [2/2]

int TAO_IIOP_Connection_Handler::set_dscp_codepoint ( CORBA::Long  dscp_codepoint)
virtual

Add ourselves to Cache.

Reimplemented from TAO_Connection_Handler.

◆ set_tos()

int TAO_IIOP_Connection_Handler::set_tos ( int  tos)
protected

helper function used by the set_dscp_codepoint () methods to set the TOS field in the IP packets.

Member Data Documentation

◆ dscp_codepoint_

int TAO_IIOP_Connection_Handler::dscp_codepoint_
private

Stores the type of service value.


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