Panda3D
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions
SocketStream Class Reference

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

Inheritance diagram for SocketStream:
iostream SSReader SSWriter istream ostream ios ios ios_base ios_base

List of all members.

Public Member Functions

 close ()
bool flush ()
 Sends the most recently queued data now.
int getTcpHeaderSize ()
 Returns the header size for datagrams.
bool isClosed ()
 setTcpHeaderSize (int tcp_header_size)
 Sets the header size for datagrams.

Detailed Description

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


Member Function Documentation

close ( )

Reimplemented from SSReader.

bool flush ( )

Sends the most recently queued data now.

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

Reimplemented from SSWriter.

Returns the header size for datagrams.

See set_tcp_header_size().

Reimplemented from SSReader.

bool isClosed ( )

Reimplemented from SSReader.

setTcpHeaderSize ( int  tcp_header_size)

Sets the header size for datagrams.

At the present, legal values for this are 0, 2, or 4; this specifies the number of bytes to use encode the datagram length at the start of each TCP datagram. Sender and receiver must independently agree on this.

Reimplemented from SSReader.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties