Ejemplo n.º 1
0
 def __init__(self, *a, **kw):
     self.responses = {'data_success': 'Finished', 'greeting': 'Hello there'}
     self.switchboard = kw.pop('switchboard')
     smtp.SMTPFactory.__init__(self, *a, **kw)
     InputChannel.__init__(self, switchboard=self.switchboard,
                           name=self.CHANNEL,
                           unique_channel=False)
Ejemplo n.º 2
0
    def __init__(self, headers, bodies, ca_cert_path, channel_name=None, enricher=None, *a, **kw):
        self.headers = headers
        self.bodies = bodies
        self.client_ca_cert_path = ca_cert_path
        self.enricher = enricher

        self.switchboard = kw.pop('switchboard')
        InputChannel.__init__(self, switchboard=self.switchboard,
                              name=channel_name if channel_name is not None else self.CHANNEL,
                              unique_channel=False)
Ejemplo n.º 3
0
 def __init__(self, *a, **kw):
     self.responses = {
         'data_success': 'Finished',
         'greeting': 'Hello there'
     }
     self.switchboard = kw.pop('switchboard')
     smtp.SMTPFactory.__init__(self, *a, **kw)
     InputChannel.__init__(self,
                           switchboard=self.switchboard,
                           name=self.CHANNEL,
                           unique_channel=False)
Ejemplo n.º 4
0
 def init(self, switchboard=None):
     InputChannel.__init__(self, switchboard=switchboard, name=self.CHANNEL)
Ejemplo n.º 5
0
 def init(self, switchboard=None):
     InputChannel.__init__(self, switchboard=switchboard, name=self.CHANNEL)
Ejemplo n.º 6
0
 def __init__(self, switchboard, port=wg.DEFAULT_PORT):
     InputChannel.__init__(self, switchboard, name=self.CHANNEL, unique_channel=True)
     self.service = internet.UDPServer(port, wg.WireGuardProtocol(channel=self))
Ejemplo n.º 7
0
 def dispatch(self, **kwargs):
     canarytoken = kwargs.pop('canarytoken')
     # TODO: If canarydrop no longer exists, delete key -> canarytoken mapping in WireGuard keymap
     kwargs['canarydrop'] = Canarydrop(**queries.get_canarydrop(canarytoken))
     InputChannel.dispatch(self, **kwargs)
 def __init__(self, *a, **kw):
     self.responses = {"data_success": "Finished", "greeting": "Hello there"}
     self.switchboard = kw.pop("switchboard")
     smtp.SMTPFactory.__init__(self, *a, **kw)
     InputChannel.__init__(self, switchboard=self.switchboard, name=self.CHANNEL, unique_channel=False)