from panda3d.core import SSReader
- class SSReader
An internal class for reading from a socket stream. This serves as a base class for both
SocketStream; its purpose is to minimize redundant code between them. Do not use it directly.
- receive_datagram(dg: Datagram) bool
Receives a datagram over the socket by expecting a little-endian 16-bit byte count as a prefix. If the socket stream is non-blocking, may return false if the data is not available; otherwise, returns false only if the socket closes.