2017-02-22 19:26:11 +00:00
|
|
|
from zope.interface import implementer
|
|
|
|
from twisted.application import service
|
|
|
|
from . import _interfaces
|
|
|
|
|
|
|
|
@implementer(_interfaces.IRendezvousConnector)
|
|
|
|
class RendezvousConnector(service.MultiService, object):
|
|
|
|
def __init__(self, journal, timing):
|
|
|
|
self._journal = journal
|
|
|
|
self._timing = timing
|
|
|
|
|
|
|
|
def wire(self, mailbox, code, nameplate_lister):
|
|
|
|
self._M = _interfaces.IMailbox(mailbox)
|
|
|
|
self._C = _interfaces.ICode(code)
|
2017-02-22 19:28:49 +00:00
|
|
|
self._NL = _interfaces.INameplateLister(nameplate_lister)
|
2017-02-22 19:26:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
# from Mailbox
|
|
|
|
def tx_claim(self):
|
|
|
|
pass
|
|
|
|
def tx_open(self):
|
|
|
|
pass
|
|
|
|
def tx_add(self, x):
|
|
|
|
pass
|
|
|
|
def tx_release(self):
|
|
|
|
pass
|
|
|
|
def tx_close(self, mood):
|
|
|
|
pass
|
|
|
|
def stop(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
# from NameplateLister
|
|
|
|
def tx_list(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
# from Code
|
|
|
|
def tx_allocate(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
# record, message, payload, packet, bundle, ciphertext, plaintext
|