panda3d.core.ISocketStream

class ISocketStream

Bases: istream, SSReader

This is a base class for istreams implemented in Panda that read from a (possibly non-blocking) socket. It adds isClosed(), 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() → None
getReadState() → ReadState
Return type

ReadState

isClosed() → bool