NetDatagram

from panda3d.net import NetDatagram
class NetDatagram

Bases: Datagram

A specific kind of Datagram, especially for sending across or receiving from a network. It’s different only in that it knows which Connection and/or NetAddress it is to be sent to or was received from.

Inheritance diagram

Inheritance diagram of NetDatagram

__init__(*args, **kwargs)
assign()

C++ Interface: assign(const NetDatagram self, const NetDatagram copy) assign(const NetDatagram self, const Datagram copy)

getAddress()

C++ Interface: get_address(NetDatagram self)

/**
  • Retrieves the host from which the datagram was read, or to which it is

  • scheduled to be sent.

*/

getClassType()

C++ Interface: get_class_type()

getConnection()

C++ Interface: get_connection(NetDatagram self)

/**
  • Retrieves the socket from which the datagram was read, or to which it is

  • scheduled to be written.

*/

get_address()

C++ Interface: get_address(NetDatagram self)

/**
  • Retrieves the host from which the datagram was read, or to which it is

  • scheduled to be sent.

*/

get_class_type()

C++ Interface: get_class_type()

get_connection()

C++ Interface: get_connection(NetDatagram self)

/**
  • Retrieves the socket from which the datagram was read, or to which it is

  • scheduled to be written.

*/

setAddress()

C++ Interface: set_address(const NetDatagram self, const NetAddress address)

/**
  • Specifies the host to which the datagram should be sent.

*/

setConnection()

C++ Interface: set_connection(const NetDatagram self, const Connection connection)

/**
  • Specifies the socket to which the datagram should be written.

*/

set_address()

C++ Interface: set_address(const NetDatagram self, const NetAddress address)

/**
  • Specifies the host to which the datagram should be sent.

*/

set_connection()

C++ Interface: set_connection(const NetDatagram self, const Connection connection)

/**
  • Specifies the socket to which the datagram should be written.

*/