00001 // Filename: datagram_ui.h 00002 // Created by: drose (09Feb00) 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 #ifndef DATAGRAM_UI_H 00016 #define DATAGRAM_UI_H 00017 00018 //////////////////////////////////////////////////////////////////// 00019 // 00020 // The functions defined here are used for testing purposes only by 00021 // some of the various test_* programs in this directory. They are 00022 // not compiled into the package library, libnet.so. 00023 // 00024 // These functions are handy for getting and reporting a datagram from 00025 // and to the user. They extend a datagram by encoding information 00026 // about the types of values stored in it. 00027 // 00028 //////////////////////////////////////////////////////////////////// 00029 00030 #include "pandabase.h" 00031 00032 #include "netDatagram.h" 00033 00034 istream &operator >> (istream &in, NetDatagram &datagram); 00035 ostream &operator << (ostream &out, const NetDatagram &datagram); 00036 00037 #endif