NetDatagram

from acron.net 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

digraph inheritance86b5e04e49 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "Datagram" [URL="acron.core.Datagram.html#acron.core.Datagram",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "Datagram" [arrowsize=0.75,style=""]; "NetDatagram" [URL="acron.net.NetDatagram.html#acron.net.NetDatagram",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "Datagram" -> "NetDatagram" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; }
__init__()

Constructs an empty datagram.

Constructs a datagram from an existing block of data.

assign()
get_address()

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

static get_class_type()
get_connection()

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

set_address()

Specifies the host to which the datagram should be sent.

set_connection()

Specifies the socket to which the datagram should be written.