#include <TCP.h>
List of all members.
Detailed Description
Definition at line 145 of file TCP.h.
Constructor & Destructor Documentation
TAO_AV_TCP_Acceptor::TAO_AV_TCP_Acceptor |
( |
void |
|
) |
|
TAO_AV_TCP_Acceptor::~TAO_AV_TCP_Acceptor |
( |
void |
|
) |
[virtual] |
Member Function Documentation
int TAO_AV_TCP_Acceptor::close |
( |
void |
|
) |
[virtual] |
Implements TAO_AV_Acceptor.
Definition at line 514 of file TCP.cpp.
{
this->flow_protocol_factory_ = factory;
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
"TAO_AV_TCP_Acceptor::open "));
this->av_core_ = av_core;
this->endpoint_ = endpoint;
this->entry_ = entry;
if (flow_comp == TAO_AV_Core::TAO_AV_CONTROL)
this->flowname_ = TAO_AV_Core::get_control_flowname (entry->flowname ());
else
this->flowname_ = entry->flowname ();
ACE_Addr *address = entry->address ();
ACE_INET_Addr *inet_addr = (ACE_INET_Addr *) address;
inet_addr->set (inet_addr->get_port_number (),
inet_addr->get_host_name ());
ACE_TCHAR buf[BUFSIZ];
inet_addr->addr_to_string (buf,
BUFSIZ);
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
"TAO_AV_TCP_Acceptor::open: %s",
buf
));
int result = this->acceptor_.acceptor_open (this,
av_core->reactor (),
*inet_addr,
entry);
if (result < 0)
ACE_ERROR_RETURN ((LM_ERROR,
"TAO_AV_TCP_Acceptor::open failed"),
-1);
entry->set_local_addr (address);
return 0;
}
Implements TAO_AV_Acceptor.
Definition at line 565 of file TCP.cpp.
{
this->flow_protocol_factory_ = factory;
this->av_core_ = av_core;
this->endpoint_ = endpoint;
this->entry_ = entry;
if (flow_comp == TAO_AV_Core::TAO_AV_CONTROL)
this->flowname_ = TAO_AV_Core::get_control_flowname (entry->flowname());
else
this->flowname_ = entry->flowname ();
ACE_INET_Addr *address = 0;
ACE_NEW_RETURN (address,
ACE_INET_Addr ("0"),
-1);
int result = this->acceptor_.acceptor_open (this,
av_core->reactor (),
*address,
entry);
if (result < 0)
ACE_ERROR_RETURN ((LM_ERROR,
"TAO_AV_TCP_Acceptor::open failed"),
-1);
this->acceptor_.acceptor ().get_local_addr (*address);
address->set (address->get_port_number (),
address->get_host_name ());
ACE_TCHAR buf[BUFSIZ];
address->addr_to_string (buf,BUFSIZ);
if (TAO_debug_level > 0)
ACE_DEBUG ((LM_DEBUG,
"TAO_AV_TCP_Acceptor::open_default: %s\n",
buf));
entry->set_local_addr (address);
return 0;
}
Member Data Documentation
The documentation for this class was generated from the following files: