Panda3D
|
00001 // Filename: datagramSinkNet.I 00002 // Created by: drose (15Feb09) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 00016 //////////////////////////////////////////////////////////////////// 00017 // Function: DatagramSinkNet::set_target 00018 // Access: Published 00019 // Description: Specifies the Connection that will receive all future 00020 // Datagrams sent. 00021 //////////////////////////////////////////////////////////////////// 00022 INLINE void DatagramSinkNet:: 00023 set_target(Connection *connection) { 00024 _target = connection; 00025 } 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Function: DatagramSinkNet::get_target 00029 // Access: Published 00030 // Description: Returns the current target Connection, or NULL if the 00031 // target has not yet been set. See set_target(). 00032 //////////////////////////////////////////////////////////////////// 00033 INLINE Connection *DatagramSinkNet:: 00034 get_target() const { 00035 return _target; 00036 }