def __init__(self, *args):
        """
        Constructor: receive an event from the zyre node, wraps zyre_recv.
The event may be a control message (ENTER, EXIT, JOIN, LEAVE) or
data (WHISPER, SHOUT).
        """
        if len(args) == 2 and type(args[0]) is c_void_p and isinstance(args[1], bool):
            self._as_parameter_ = cast(args[0], zyre_event_p) # Conversion from raw type to binding
            self.allow_destruct = args[1] # This is a 'fresh' value, owned by us
        elif len(args) == 2 and type(args[0]) is zyre_event_p and isinstance(args[1], bool):
            self._as_parameter_ = args[0] # Conversion from raw type to binding
            self.allow_destruct = args[1] # This is a 'fresh' value, owned by us
        else:
            assert(len(args) == 1)
            self._as_parameter_ = lib.zyre_event_new(args[0]) # Creation of new raw type
            self.allow_destruct = True
def __init__ ( self , * args ) : if len ( args ) == 2 and type ( args [ 0 ] ) is c_void_p and isinstance ( args [ 1 ] , bool ) : self . _as_parameter_ = cast ( args [ 0 ] , zyre_event_p ) self . allow_destruct = args [ 1 ] elif len ( args ) == 2 and type ( args [ 0 ] ) is zyre_event_p and isinstance ( args [ 1 ] , bool ) : self . _as_parameter_ = args [ 0 ] self . allow_destruct = args [ 1 ] else : assert ( len ( args ) == 1 ) self . _as_parameter_ = lib . zyre_event_new ( args [ 0 ] ) self . allow_destruct = True
Constructor: receive an event from the zyre node, wraps zyre_recv.
The event may be a control message (ENTER, EXIT, JOIN, LEAVE) or
data (WHISPER, SHOUT).