# SSReader

from pandac.PandaModules import SSReader

Class : SSReader
Description : An internal class for reading from a socket stream. This serves as a base class for both ISocketStream and SocketStream; its purpose is to minimize redundant code between them. Do not use it directly.

## Inheritance:

SSReader:

## Methods of SSReader:

close
isClosed
receiveDatagram

close virtual void SSReader::close(void) = 0; Undocumented function.

isClosed virtual bool SSReader::is_closed(void) = 0; Undocumented function.

receiveDatagram bool SSReader::receive_datagram(Datagram &dg); Description: 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.