NetDatagram

from panda3d.core 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__()

Constructs an empty datagram.

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

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

static getClassType()TypeHandle
getConnection()Connection

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

setAddress(address: NetAddress)None

Specifies the host to which the datagram should be sent.

setConnection(connection: Connection)None

Specifies the socket to which the datagram should be written.