DatagramGeneratorNet
from panda3d.net import DatagramGeneratorNet
- class DatagramGeneratorNet
Bases:
DatagramGenerator
,ConnectionReader
,QueuedReturn_Datagram
This class provides datagrams one-at-a-time as read directly from the net, via a TCP connection. If a datagram is not available, get_datagram() will block until one is.
Inheritance diagram
- __init__(*args, **kwargs)
- getDatagram()
C++ Interface: get_datagram(const DatagramGeneratorNet self, Datagram data)
// Inherited from DatagramGenerator
- /**
Reads the next datagram from the stream. Blocks until a datagram is
available. Returns true on success, false on stream closed or error.
*/
- get_datagram()
C++ Interface: get_datagram(const DatagramGeneratorNet self, Datagram data)
// Inherited from DatagramGenerator
- /**
Reads the next datagram from the stream. Blocks until a datagram is
available. Returns true on success, false on stream closed or error.
*/
- isEof()
C++ Interface: is_eof(const DatagramGeneratorNet self)
- /**
Returns true if the stream has been closed normally. This test may only be
made after a call to get_datagram() has failed.
*/
- isError()
C++ Interface: is_error(const DatagramGeneratorNet self)
- /**
Returns true if the stream has an error condition.
*/
- is_eof()
C++ Interface: is_eof(const DatagramGeneratorNet self)
- /**
Returns true if the stream has been closed normally. This test may only be
made after a call to get_datagram() has failed.
*/
- is_error()
C++ Interface: is_error(const DatagramGeneratorNet self)
- /**
Returns true if the stream has an error condition.
*/
- upcastToConnectionReader()
C++ Interface: upcast_to_ConnectionReader(const DatagramGeneratorNet self)
upcast from DatagramGeneratorNet to ConnectionReader
- upcastToDatagramGenerator()
C++ Interface: upcast_to_DatagramGenerator(const DatagramGeneratorNet self)
upcast from DatagramGeneratorNet to DatagramGenerator
- upcastToQueuedReturnDatagram()
C++ Interface: upcast_to_QueuedReturn_Datagram(const DatagramGeneratorNet self)
upcast from DatagramGeneratorNet to QueuedReturn< Datagram >
- upcast_to_ConnectionReader()
C++ Interface: upcast_to_ConnectionReader(const DatagramGeneratorNet self)
upcast from DatagramGeneratorNet to ConnectionReader
- upcast_to_DatagramGenerator()
C++ Interface: upcast_to_DatagramGenerator(const DatagramGeneratorNet self)
upcast from DatagramGeneratorNet to DatagramGenerator
- upcast_to_QueuedReturn_Datagram()
C++ Interface: upcast_to_QueuedReturn_Datagram(const DatagramGeneratorNet self)
upcast from DatagramGeneratorNet to QueuedReturn< Datagram >