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

Constructs an empty datagram.

__init__(copy: Datagram) → None
__init__(copy: NetDatagram) → None
assign(copy: Datagram) → NetDatagram
Return type

NetDatagram

assign(copy: NetDatagram) → NetDatagram
Return type

NetDatagram

getAddress() → NetAddress

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

Return type

NetAddress

static getClassType() → TypeHandle
Return type

TypeHandle

getConnection() → Connection

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

Return type

Connection

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.