NetDatagram

from panda3d.core import NetDatagram
class NetDatagram

Bases:

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__()

Constructs an empty datagram.

__init__(copy: Datagram)
__init__(copy: NetDatagram)
assign(copy: Datagram) NetDatagram
assign(copy: NetDatagram) NetDatagram
get_address() NetAddress

Retrieves the host from which the datagram was read, or to which it is scheduled to be sent.

static get_class_type() TypeHandle
get_connection() Connection

Retrieves the socket from which the datagram was read, or to which it is scheduled to be written.

set_address(address: NetAddress)

Specifies the host to which the datagram should be sent.

set_connection(connection: Connection)

Specifies the socket to which the datagram should be written.