Panda3D
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Types | Public Member Functions
ISocketStream Class Reference

This is a base class for istreams implemented in Panda that read from a (possibly non-blocking) socket. More...

Inheritance diagram for ISocketStream:
istream SSReader ios ios_base

List of all members.

Public Types

enum  ReadState { RSInitial = 0, RSReading = 1, RSComplete = 2, RSError = 3 }

Public Member Functions

 close ()
ReadState getReadState ()
bool isClosed ()

Detailed Description

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.


Member Enumeration Documentation

enum ReadState
Enumerator:
RSInitial 
RSReading 
RSComplete 
RSError 

Member Function Documentation

close ( )

Reimplemented from SSReader.

bool isClosed ( )

Reimplemented from SSReader.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties