from panda3d.core import OSocketStream
class OSocketStream


Bases: ostream, SSWriter

A base class for ostreams that write to a (possibly non-blocking) socket. It adds isClosed(), which can be called after any write operation fails to check whether the socket has been closed, or whether more data may be sent later.

Inheritance diagram

Inheritance diagram of OSocketStream

flush() bool

Sends the most recently queued data now. This only has meaning if setCollectTcp() has been set to true.

isClosed() bool