HSL 2.0 framework
Description of the framework
Public Member Functions |List of all members
hsl20_4_udp.hsl20_4_udp.UdpBase Class Reference

Basic class for UDP communication. More...

Inherited by hsl20_4_udp.hsl20_4_udp.Broadcast, hsl20_4_udp.hsl20_4_udp.Multicast, and hsl20_4_udp.hsl20_4_udp.Unicast

Public Member Functions

def__init__ (self, framework, context_map)
Constructor. More...
defset_on_data (self, callback)
Sets a callback for data reception. More...
defset_on_error (self, callback)
Sets a callback in case of an error. More...
defstart_server (self)
Starts the UDP receive server. More...

Detailed Description

Basic class for UDP communication

Deprecated:
This class should no longer be used. The class is inherited from the Unicast, Broadcast and Multicast classes

Constructor & Destructor Documentation

◆ __init__()

def hsl20_4_udp.hsl20_4_udp.UdpBase.__init__ ( self,
framework,
context_map
)

Constructor

Warning
This class should not be instantiated directly

Member Function Documentation

◆ set_on_data()

def hsl20_4_udp.hsl20_4_udp.UdpBase.set_on_data ( self,
callback
)

Sets a callback for data reception

Parameters
callback
Callback
  • data string
    Data
  • address object
    IP address and IP port

◆ set_on_error()

def hsl20_4_udp.hsl20_4_udp.UdpBase.set_on_error ( self,
callback
)

Sets a callback in case of an error

Parameters for callback:

  • exception exception
    The Exception Object
Parameters
callback
Callback

◆ start_server()

def hsl20_4_udp.hsl20_4_udp.UdpBase.start_server ( self)

Starts the UDP receive server


The documentation for this class was generated from the following file: