00001 /* 00002 * 00003 * 00004 * Distributed under the OpenDDS License. 00005 * See: http://www.opendds.org/license.html 00006 */ 00007 00008 #include "BestEffortSessionFactory.h" 00009 #include "BestEffortSession.h" 00010 00011 namespace OpenDDS { 00012 namespace DCPS { 00013 00014 int 00015 BestEffortSessionFactory::requires_send_buffer() const 00016 { 00017 return 0; 00018 } 00019 00020 MulticastSession* 00021 BestEffortSessionFactory::create(ACE_Reactor* reactor, 00022 ACE_thread_t owner, 00023 MulticastDataLink* link, 00024 MulticastPeer remote_peer) 00025 { 00026 BestEffortSession* session; 00027 ACE_NEW_RETURN(session, BestEffortSession(reactor, owner, link, remote_peer), 0); 00028 return session; 00029 } 00030 00031 } // namespace DCPS 00032 } // namespace OpenDDS