#include <OSGDgram.h>
compare | |
| *bool | operator< (const Dgram &other) const |
| static bool | less (UInt16, UInt16) |
Public Member Functions | |
constructor | |
| * | Dgram () |
| ~Dgram () | |
get | |
| *UInt32 | getCapacity (void) const |
| UInt16 | getId (void) const |
| bool | getResponseAck (void) const |
| UInt32 | getSize (void) const |
| UChar8 * | getData (void) |
| const UChar8 * | getData (void) const |
| UChar8 * | getBuffer (void) |
| UInt32 | getBufferSize (void) const |
| UInt32 | getBufferCapacity (void) const |
| bool | getEarlySend (void) const |
set | |
| *void | setSize (UInt32 size) |
| void | setResponseSize (void) |
| void | setId (UInt16 id) |
| void | setResponseAck (bool value) |
| void | setBufferSize (UInt32 size) |
| void | setEarlySend (bool value) |
Static Public Member Functions | |
create, release | |
| *static Dgram * | create (void) |
| static void | release (Dgram *dgram) |
Protected Attributes | |
| UInt16 | _id |
| UChar8 | _data [OSG_DGRAM_LEN-2] |
member | |
| *bool | _earlySend |
| UInt32 | _size |
| struct { | |
| UInt16 _id | |
| UChar8 _data [OSG_DGRAM_LEN-2] | |
| } | _buffer |
Definition at line 64 of file OSGDgram.h.
|
|
constructor. Use Dgram::create to get dgrams Definition at line 62 of file OSGDgram.cpp. 00062 : 00063 _size(0), 00064 _earlySend(false) 00065 { 00066 }
|
|
|
destructor. Use Dgram::release to free dgrams Definition at line 70 of file OSGDgram.cpp.
|
|
|
|
|
|
|
|
|
Definition at line 47 of file OSGDgram.inl. References _buffer. Referenced by osg::GroupMCastConnection::write().
|
|
|
Definition at line 52 of file OSGDgram.inl. References _buffer, and osg::osgntohs(). Referenced by osg::PointMCastConnection::combineAck(), operator<(), osg::PointMCastConnection::recvNextDgram(), osg::PointMCastConnection::recvQueue(), and osg::GroupMCastConnection::sendQueue().
|
|
|
Definition at line 87 of file OSGDgram.inl. References _buffer. Referenced by osg::PointMCastConnection::recvQueue(), and osg::GroupMCastConnection::sendQueue(). 00088 { 00089 return _buffer._data[0]; 00090 }
|
|
|
Definition at line 57 of file OSGDgram.inl. References _size. Referenced by osg::PointMCastConnection::read(), osg::PointMCastConnection::readBuffer(), osg::PointMCastConnection::recvQueue(), and osg::GroupMCastConnection::write(). 00058 { 00059 return _size; 00060 }
|
|
|
Definition at line 62 of file OSGDgram.inl. References _buffer. Referenced by osg::PointMCastConnection::read(), osg::PointMCastConnection::readBuffer(), and osg::GroupMCastConnection::write(). 00063 { 00064 return _buffer._data; 00065 }
|
|
|
Definition at line 67 of file OSGDgram.inl. References _buffer. 00068 { 00069 return _buffer._data; 00070 }
|
|
|
Definition at line 72 of file OSGDgram.inl. References _buffer. Referenced by osg::PointMCastConnection::combineAck(), osg::PointMCastConnection::recvNextDgram(), osg::PointMCastConnection::recvQueue(), osg::GroupMCastConnection::sendQueue(), and osg::GroupMCastConnection::write().
|
|
|
Definition at line 77 of file OSGDgram.inl. References _buffer, and _size. Referenced by osg::PointMCastConnection::combineAck(), osg::PointMCastConnection::recvNextDgram(), osg::PointMCastConnection::recvQueue(), osg::GroupMCastConnection::sendQueue(), and osg::GroupMCastConnection::write().
|
|
|
Definition at line 82 of file OSGDgram.inl. References _buffer. Referenced by osg::PointMCastConnection::recvNextDgram(), and osg::GroupMCastConnection::sendQueue(). 00083 { 00084 return sizeof(_buffer); 00085 }
|
|
|
Definition at line 92 of file OSGDgram.inl. References _earlySend. 00093 { 00094 return _earlySend; 00095 }
|
|
|
Definition at line 100 of file OSGDgram.inl. References _size. Referenced by osg::PointMCastConnection::recvQueue(), osg::GroupMCastConnection::sendQueue(), osg::GroupMCastConnection::write(), and osg::GroupMCastConnection::~GroupMCastConnection(). 00101 { 00102 _size = size; 00103 }
|
|
|
Definition at line 105 of file OSGDgram.inl. References _size. Referenced by osg::PointMCastConnection::combineAck(), osg::PointMCastConnection::recvNextDgram(), osg::PointMCastConnection::recvQueue(), and osg::GroupMCastConnection::sendQueue().
|
|
|
Definition at line 110 of file OSGDgram.inl. References _buffer, and osg::osghtons(). Referenced by osg::PointMCastConnection::combineAck(), osg::PointMCastConnection::recvNextDgram(), osg::PointMCastConnection::recvQueue(), osg::GroupMCastConnection::sendQueue(), and osg::GroupMCastConnection::write().
|
|
|
Definition at line 120 of file OSGDgram.inl. References _buffer. Referenced by osg::PointMCastConnection::combineAck(), osg::PointMCastConnection::recvNextDgram(), and osg::PointMCastConnection::recvQueue().
|
|
|
Definition at line 115 of file OSGDgram.inl. References _buffer, and _size. Referenced by osg::PointMCastConnection::recvNextDgram().
|
|
|
Definition at line 125 of file OSGDgram.inl. References _earlySend. Referenced by osg::GroupMCastConnection::write(). 00126 { 00127 _earlySend = value; 00128 }
|
|
|
Compare IDs. Use Window. Definition at line 135 of file OSGDgram.inl. References getId(), and less(). 00136 { 00137 return less(this->getId(),other.getId()); 00138 }
|
|
||||||||||||
|
Compare IDs. Use Window. Definition at line 142 of file OSGDgram.inl. Referenced by osg::PointMCastConnection::combineAck(), operator<(), osg::PointMCastConnection::recvQueue(), and osg::GroupMCastConnection::sendQueue(). 00143 { 00144 a = a - b; 00145 00146 if(a & 0x8000) 00147 return true; 00148 else 00149 return false; 00150 }
|
|
|
Definition at line 132 of file OSGDgram.h. Referenced by getEarlySend(), and setEarlySend(). |
|
|
Definition at line 133 of file OSGDgram.h. Referenced by getBufferSize(), getSize(), setBufferSize(), setResponseSize(), and setSize(). |
|
|
Definition at line 135 of file OSGDgram.h. |
|
|
Definition at line 136 of file OSGDgram.h. |
|
|
Referenced by getBuffer(), getBufferCapacity(), getBufferSize(), getCapacity(), getData(), getId(), getResponseAck(), setBufferSize(), setId(), and setResponseAck(). |
1.4.3