Panda3D

- Main Page
- Packages
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

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:

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.

ReadState getReadState | ( |  | ) |

bool isClosed | ( |  | ) |

Reimplemented from SSReader.

All Classes Namespaces Functions Variables Enumerations Enumerator Properties