DatagramSinkNet

from panda3d.net import DatagramSinkNet
class DatagramSinkNet

Bases: DatagramSink, ConnectionWriter

This class accepts datagrams one-at-a-time and sends them over the net, via a TCP connection.

Inheritance diagram

Inheritance diagram of DatagramSinkNet

__init__(*args, **kwargs)
flush()

C++ Interface: flush(const DatagramSinkNet self)

/**
  • Ensures that all datagrams previously written will be visible on the

  • stream.

*/

getTarget()

C++ Interface: get_target(DatagramSinkNet self)

/**
  • Returns the current target Connection, or NULL if the target has not yet

  • been set. See set_target().

*/

get_target()

C++ Interface: get_target(DatagramSinkNet self)

/**
  • Returns the current target Connection, or NULL if the target has not yet

  • been set. See set_target().

*/

isError()

C++ Interface: is_error(const DatagramSinkNet self)

/**
  • Returns true if there is an error on the target connection, or if the

  • target has never been set.

*/

is_error()

C++ Interface: is_error(const DatagramSinkNet self)

/**
  • Returns true if there is an error on the target connection, or if the

  • target has never been set.

*/

putDatagram()

C++ Interface: put_datagram(const DatagramSinkNet self, const Datagram data)

// Inherited from DatagramSink

/**
  • Sends the given datagram to the target. Returns true on success, false if

  • there is an error. Blocks if necessary until the target is ready.

*/

put_datagram()

C++ Interface: put_datagram(const DatagramSinkNet self, const Datagram data)

// Inherited from DatagramSink

/**
  • Sends the given datagram to the target. Returns true on success, false if

  • there is an error. Blocks if necessary until the target is ready.

*/

setTarget()

C++ Interface: set_target(const DatagramSinkNet self, Connection connection)

/**
  • Specifies the Connection that will receive all future Datagrams sent.

*/

set_target()

C++ Interface: set_target(const DatagramSinkNet self, Connection connection)

/**
  • Specifies the Connection that will receive all future Datagrams sent.

*/

upcastToConnectionWriter()

C++ Interface: upcast_to_ConnectionWriter(const DatagramSinkNet self)

upcast from DatagramSinkNet to ConnectionWriter

upcastToDatagramSink()

C++ Interface: upcast_to_DatagramSink(const DatagramSinkNet self)

upcast from DatagramSinkNet to DatagramSink

upcast_to_ConnectionWriter()

C++ Interface: upcast_to_ConnectionWriter(const DatagramSinkNet self)

upcast from DatagramSinkNet to ConnectionWriter

upcast_to_DatagramSink()

C++ Interface: upcast_to_DatagramSink(const DatagramSinkNet self)

upcast from DatagramSinkNet to DatagramSink