from panda3d.core import NetDatagram
- class NetDatagram¶
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
NetAddressit is to be sent to or was received from.
Constructs an empty datagram.
- __init__(copy: Datagram)
- __init__(copy: NetDatagram)
- getAddress() NetAddress ¶
Retrieves the host from which the datagram was read, or to which it is scheduled to be sent.
- getConnection() Connection ¶
Retrieves the socket from which the datagram was read, or to which it is scheduled to be written.