Panda3D
Public Member Functions | List of all members
Buffered_DatagramReader Class Reference
Inheritance diagram for Buffered_DatagramReader:
RingBuffer

Public Member Functions

 Buffered_DatagramReader (int in_size=8192)
 Constructor. More...
 
template<class SOCK_TYPE >
int PumpMessageReader (Datagram &inmsg, SOCK_TYPE &sck)
 
template<class SOCK_TYPE >
int ReadPump (SOCK_TYPE &sck)
 
void ReSet (void)
 Reset all read content, ie. More...
 

Detailed Description

Definition at line 16 of file buffered_datagramreader.h.

Constructor & Destructor Documentation

◆ Buffered_DatagramReader()

Buffered_DatagramReader::Buffered_DatagramReader ( int  in_size = 8192)
inline

Constructor.

Passes size up to ring buffer.

Definition at line 25 of file buffered_datagramreader.I.

Member Function Documentation

◆ ReSet()

void Buffered_DatagramReader::ReSet ( void  )
inline

Reset all read content, ie.

zeroes out buffer.

If you lose framing, this will not help.

Definition at line 34 of file buffered_datagramreader.I.

References RingBuffer::ResetContent().


The documentation for this class was generated from the following files: