Panda3D
|
This is a base class for istreams implemented in Panda that read from a (possibly non-blocking) socket. More...
Public Types | |
enum | ReadState { RS_initial = 0, RS_reading = 1, RS_complete = 2, RS_error = 3 } |
![]() | |
enum | Iostate |
enum | Openmode |
enum | Seekdir { beg = 0, cur = 1, end = 2 } |
Public Member Functions | |
close () | |
ISocketStream::ReadState | getReadState () |
bool | isClosed () |
![]() | |
int | get () |
seekg (Streamoff off, IosBase::Seekdir dir) | |
seekg (Streamoff pos) | |
Streamoff | tellg () |
![]() | |
bool | bad () |
clear () | |
bool | eof () |
bool | fail () |
bool | good () |
![]() | |
close () | |
int | getTcpHeaderSize () |
Returns the header size for datagrams. More... | |
bool | isClosed () |
bool | receiveDatagram (Datagram dg) |
Receives a datagram over the socket by expecting a little-endian 16-bit byte count as a prefix. More... | |
setTcpHeaderSize (int tcp_header_size) | |
Sets the header size for datagrams. More... | |
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.
enum ReadState |
close | ( | ) |
ISocketStream::ReadState getReadState | ( | ) |
bool isClosed | ( | ) |