DBBC3Multicast Module

This module is part of the DBBC3 package and implements the muticast functionality.

class DBBC3MulticastAbstract

Abstract base class for all derived Multicast classes

class DBBC3MulticastBase(group, port, timeout, iface)

Base class that contains the multicast functionality common to all modes and software versions.

All classes that contain multicast content specific to a particaular mode and software version should be derived from this class.

Note:

All derived sub-classes must follow the naming convention DBBC3Mutlicast_*modei*_*version*

Args:

group (str, optional): the multicast group to use (default: 224.0.0.255) port (int, optional): the multicast port to use (default: 25000) timeout (int, optional): the socket timeout in seconds (default: 10) iface (str, optional): ip of interface on which to listen (default: None, let the OS pick one)

property lastMessage

Returns the last received multicast message dictionary

Type:

dict

class DBBC3MulticastFactory

Factory class to create an instance of a Multicast sub-class matching the current DBBC3 mode and software version

create(group='224.0.0.255', port=25000, timeout=10, iface=None)

Return an instance of the Multicast sub-class that matches the currently running mode and software version

Parameters:
  • group (str, optional) – the multicast group to use (default: 224.0.0.255)

  • port (int, optional) – the multicast port to use (default: 25000)

  • timeout (int, optional) – the socket timeout in seconds (default: 10)

  • iface (str, optional) – ip of interface on which to listen (default: None, let the OS pick one)

Returns:

the instance of the multicast class matching the current mode and software version

class DBBC3Multicast_DDC_U_125(group, port, timeout, iface)

Class for parsing multicast broadcasts specific to the the DDC_U 125 mode/version.

property lastMessage

Returns the last received multicast message dictionary

Type:

dict

class DBBC3Multicast_DDC_U_126(group, port, timeout, iface)
property lastMessage

Returns the last received multicast message dictionary

Type:

dict

class DBBC3Multicast_DDC_V_125(group, port, timeout, iface)
property lastMessage

Returns the last received multicast message dictionary

Type:

dict

class DBBC3Multicast_DSC_120(group, port, timeout, iface)
property lastMessage

Returns the last received multicast message dictionary

Type:

dict

class DBBC3Multicast_OCT_D_120(group, port, timeout, iface)

Class for parsing multicast broadcasts specific to the the DDC_U 125 mode/version.

property lastMessage

Returns the last received multicast message dictionary

Type:

dict

DBBC3MulticastFactory class

This module is part of the DBBC3 package and implements the muticast functionality.

class DBBC3MulticastFactory

Bases: object

Factory class to create an instance of a Multicast sub-class matching the current DBBC3 mode and software version

create(group='224.0.0.255', port=25000, timeout=10, iface=None)

Return an instance of the Multicast sub-class that matches the currently running mode and software version

Parameters:
  • group (str, optional) – the multicast group to use (default: 224.0.0.255)

  • port (int, optional) – the multicast port to use (default: 25000)

  • timeout (int, optional) – the socket timeout in seconds (default: 10)

  • iface (str, optional) – ip of interface on which to listen (default: None, let the OS pick one)

Returns:

the instance of the multicast class matching the current mode and software version