Panda3D

- Main Page
- Packages
- Classes

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

Public Member Functions

# OSocketStream Class Reference

A base class for ostreams that write to a (possibly non-blocking) socket. More...

Inheritance diagram for OSocketStream:

List of all members.

## Public Member Functions
| close ()
bool | flush ()
| Sends the most recently queued data now.
bool | isClosed ()

## Detailed Description

A base class for ostreams that write to a (possibly non-blocking) socket.

It adds is_closed(), 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.

## Member Function Documentation

close | ( |  | ) |

Reimplemented from SSWriter.

bool flush | ( |  | ) |

Sends the most recently queued data now.

This only has meaning if set_collect_tcp() has been set to true.

Reimplemented from ostream.

bool isClosed | ( |  | ) |

Reimplemented from SSWriter.

All Classes Namespaces Functions Variables Enumerations Enumerator Properties