ISocketStream

from panda3d.core import ISocketStream
class ISocketStream

Bases:

Bases: istream, SSReader

This is a base class for istreams implemented in Panda that read from a (possibly non-blocking) socket. It adds is_closed(), which can be called after an eof condition to check whether the socket has been closed, or whether more data may be available later.

Inheritance diagram

Inheritance diagram of ISocketStream

enum ReadState
enumerator RS_initial = 0
enumerator RS_reading = 1
enumerator RS_complete = 2
enumerator RS_error = 3
close()
get_read_state() ReadState
is_closed() bool