def __init__(self, sap):
        if _debug: SSM._debug("__init__ %r", sap)
        OneShotTask.__init__(self)

        self.ssmSAP = sap                   # reference to the service access point
        self.remoteDevice = None            # remote device
        self.invokeID = None                # invoke ID

        self.state = IDLE                   # initial state
        self.segmentAPDU = None             # refers to request or response
        self.segmentSize = None             # how big the pieces are
        self.segmentCount = None
        self.maxSegmentsAccepted = None     # maximum number of segments client will accept

        self.retryCount = None
        self.segmentRetryCount = None
        self.sentAllSegments = None
        self.lastSequenceNumber = None
        self.initialSequenceNumber = None
        self.actualWindowSize = None
        self.proposedWindowSize = None
Common parts for client and server segmentation.
dataset/ETHPy150Open JoelBender/bacpypes/py25/bacpypes/appservice.py/SSM.__init__