Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/net/datagramTCPHeader.I

Go to the documentation of this file.
00001 // Filename: datagramTCPHeader.I
00002 // Created by:  drose (01Aug01)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //     Function: DatagramTCPHeader::get_datagram_size
00022 //       Access: Public
00023 //  Description: Returns the number of bytes in the associated
00024 //               datagram.
00025 ////////////////////////////////////////////////////////////////////
00026 INLINE int DatagramTCPHeader::
00027 get_datagram_size() const {
00028   DatagramIterator di(_header);
00029   return di.get_uint16();
00030 }
00031 
00032 ////////////////////////////////////////////////////////////////////
00033 //     Function: DatagramTCPHeader::get_header
00034 //       Access: Public
00035 //  Description: Returns a pointer to a block of data of length
00036 //               datagram_tcp_header_size, which can be written to the
00037 //               network as the header information.
00038 ////////////////////////////////////////////////////////////////////
00039 INLINE string DatagramTCPHeader::
00040 get_header() const {
00041   return _header.get_message();
00042 }

Generated on Fri May 2 00:40:34 2003 for Panda by doxygen1.3