SSReader
from panda3d.core import SSReader
- class SSReader
Bases:
DTOOL_SUPER_BASE
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 diagram
- __init__(*args, **kwargs)
- close()
C++ Interface: close(const SSReader self)
- getTcpHeaderSize()
C++ Interface: get_tcp_header_size(SSReader self)
- /**
Returns the header size for datagrams. See set_tcp_header_size().
*/
- get_tcp_header_size()
C++ Interface: get_tcp_header_size(SSReader self)
- /**
Returns the header size for datagrams. See set_tcp_header_size().
*/
- isClosed()
C++ Interface: is_closed(const SSReader self)
- is_closed()
C++ Interface: is_closed(const SSReader self)
- receiveDatagram()
C++ Interface: receive_datagram(const SSReader self, Datagram dg)
- /**
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.
*/
- receive_datagram()
C++ Interface: receive_datagram(const SSReader self, Datagram dg)
- /**
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.
*/
- setTcpHeaderSize()
C++ Interface: set_tcp_header_size(const SSReader self, int tcp_header_size)
- /**
Sets the header size for datagrams. At the present, legal values for this
are 0, 2, or 4; this specifies the number of bytes to use encode the
datagram length at the start of each TCP datagram. Sender and receiver
must independently agree on this.
*/
- set_tcp_header_size()
C++ Interface: set_tcp_header_size(const SSReader self, int tcp_header_size)
- /**
Sets the header size for datagrams. At the present, legal values for this
are 0, 2, or 4; this specifies the number of bytes to use encode the
datagram length at the start of each TCP datagram. Sender and receiver
must independently agree on this.
*/