SocketStream

from panda3d.core import SocketStream
class SocketStream

Bases: iostream, SSReader, SSWriter

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

Inheritance diagram

Inheritance diagram of SocketStream

__init__(*args, **kwargs)
close()

C++ Interface: close(const SocketStream self)

flush()

C++ Interface: flush(const SocketStream self)

/**
  • Sends the most recently queued data now. This only has meaning if

  • set_collect_tcp() has been set to true.

*/

getTcpHeaderSize()

C++ Interface: get_tcp_header_size(SocketStream self)

/**
  • Returns the header size for datagrams. See set_tcp_header_size().

*/

get_tcp_header_size()

C++ Interface: get_tcp_header_size(SocketStream self)

/**
  • Returns the header size for datagrams. See set_tcp_header_size().

*/

isClosed()

C++ Interface: is_closed(const SocketStream self)

is_closed()

C++ Interface: is_closed(const SocketStream self)

setTcpHeaderSize()

C++ Interface: set_tcp_header_size(const SocketStream self, 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.

*/

set_tcp_header_size()

C++ Interface: set_tcp_header_size(const SocketStream self, 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.

*/

upcastToIostream()

C++ Interface: upcast_to_iostream(const SocketStream self)

upcast from SocketStream to iostream

upcastToSSReader()

C++ Interface: upcast_to_SSReader(const SocketStream self)

upcast from SocketStream to SSReader

upcastToSSWriter()

C++ Interface: upcast_to_SSWriter(const SocketStream self)

upcast from SocketStream to SSWriter

upcast_to_SSReader()

C++ Interface: upcast_to_SSReader(const SocketStream self)

upcast from SocketStream to SSReader

upcast_to_SSWriter()

C++ Interface: upcast_to_SSWriter(const SocketStream self)

upcast from SocketStream to SSWriter

upcast_to_iostream()

C++ Interface: upcast_to_iostream(const SocketStream self)

upcast from SocketStream to iostream