Module Receiver

This module defines the class Receive, the main entry point for UDP based protocols.

Imported modules

Class Receive

Wrapper for the ZorpReceiver class implemented in C.

Attributes

Table 4-92. Attributes for class Receive

listenthe low-level receiver object
servicethe service to start
sessionthe session data

Constructor __init__

Initializes a Receive instance.

Synopsis

__init__ (
        self,
        bindto,
        service,
        )

Description

Initialize a Receive instance.

Arguments

Table 4-93. Arguments for Receive.__init__()

bindtothe address to bind to
servicethe service to start for incoming datagrams

Exceptions

  • ServiceException

Method destroy

Destroys the receiver

Synopsis

destroy ( self )

Description

This function calls the destroy method of the low-level object.

Arguments

Table 4-94. Arguments for Receive.destroy()

selfthis instance