Panda3D
datagramSinkNet.I
1 // Filename: datagramSinkNet.I
2 // Created by: drose (15Feb09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: DatagramSinkNet::set_target
18 // Access: Published
19 // Description: Specifies the Connection that will receive all future
20 // Datagrams sent.
21 ////////////////////////////////////////////////////////////////////
22 INLINE void DatagramSinkNet::
23 set_target(Connection *connection) {
24  _target = connection;
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: DatagramSinkNet::get_target
29 // Access: Published
30 // Description: Returns the current target Connection, or NULL if the
31 // target has not yet been set. See set_target().
32 ////////////////////////////////////////////////////////////////////
34 get_target() const {
35  return _target;
36 }
void set_target(Connection *connection)
Specifies the Connection that will receive all future Datagrams sent.
Represents a single TCP or UDP socket for input or output.
Definition: connection.h:32
Connection * get_target() const
Returns the current target Connection, or NULL if the target has not yet been set.