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 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
virtual void close(void) = 0
virtual ReadState get_read_state(void) = 0
virtual bool is_closed(void) = 0