def __init__(self, lowerTransport): StackingTransport.__init__(self, lowerTransport) #The next sequence number to send data, the field should be #updated every time a message is sent. self.nextSequenceNumber = int(os.urandom(4).encode('hex'), 16) #The current session ID, established in the handshake self.sessionID = "" #A list of the messages sent that have not yet been acknowledged. self.unacknowledgedSent = [] #The maximum segment size self.mss = 4096 #The current state of the RIP self.state = "LISTEN" #The timeout period before retransmission self.timeout = 4 #The maximum number of messages sent without an ack self.maxSent = 256 #The buffer to hold any messages sent after the 256th message self.sendOverflow = [] #Timeout for idle/wait in protocol self.idleTimeout = None #Timeout period for idle/wait self.idleTimeoutPeriod = 120 #The certs for the peer self.peerCerts = None
def __init__(self, lowerTransport, protocol): StackingTransport.__init__(self, lowerTransport) self.protocol = protocol
def __init__(self, lowerTransport, protocol, TCB): StackingTransport.__init__(self, lowerTransport) self.TCB = protocol.TCB self.protocol = protocol
def __init__(s, lowerTransport, kissproto): StackingTransport.__init__(s, lowerTransport) s.kissP = kissproto
def __init__(s, lowerTransport, ripproto): StackingTransport.__init__(s, lowerTransport) s.ripP = ripproto
def __init__(self, lowerTransport): StackingTransport.__init__(self, lowerTransport)
def __init__(self, srcAddr, srcPort, dstAddr, dstPort, twistedTransport): StackingTransport.__init__(self, twistedTransport) self.__srcAddr, self.__srcPort = srcAddr, srcPort self.__dstAddr, self.__dstPort = dstAddr, dstPort
def __init__(self, lowerTransport, transportOf): StackingTransport.__init__(self, lowerTransport) self.SEQ = 0 self.ACK = 0 self.transportOf = transportOf
def __init__(self, lowerTransport, fixedKey): StackingTransport.__init__(self, lowerTransport) self.FixedKey = fixedKey
def __init__(self, lowerTransport, lowerProtocol): StackingTransport.__init__(self, lowerTransport) self.lowerProtocol = lowerProtocol