Module Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Num attr Assign NameStore BinOpPow Num Num Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore ListComp BinOpLShift Num NameLoad comprehension NameStore Call NameLoad Num FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body If NameLoad body AugAssignBitOr AttributeStore NameLoad attr NameLoad orelse AugAssignBitAnd AttributeStore NameLoad attr UnaryOpInvert NameLoad decorator_list Return Call NameLoad Lambda arguments args NameParam defaults Call NameLoad BinOpBitAnd AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return BinOpSub BinOpAdd NameLoad BinOpMult NameLoad BinOpPow Num Num NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr NameLoad body Assign NameStore TupleLoad TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Num FunctionDef arguments args defaults body FunctionDef arguments args NameParam defaults body If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Return BinOpAdd BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Slice Num Str SubscriptLoad AttributeLoad NameLoad attr Slice Num orelse Return AttributeLoad NameLoad attr decorator_list Return TupleLoad NameLoad decorator_list Assign NameStore Call NameLoad Call NameLoad FunctionDef arguments args defaults body FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For TupleStore NameStore NameStore ListLoad TupleLoad AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr BoolOpOr BoolOpAnd NameLoad NameLoad Str Return Call AttributeLoad Str attr NameLoad decorator_list Return TupleLoad NameLoad decorator_list Assign NameStore Call NameLoad Call NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults BinOpLShift Num Num NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num Num Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num Num Num Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpAdd BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareNotEq Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareGt Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad NameLoad orelse Raise Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareNotEq NameLoad NameLoad body Raise Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Slice NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Return BinOpAdd Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareLt AttributeLoad NameLoad attr NameLoad body Return ListLoad NameLoad Assert UnaryOpNot AttributeLoad NameLoad attr Str Assign NameStore Num Assign NameStore ListLoad For NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Num While CompareLt NameLoad Call NameLoad NameLoad body Expr Yield SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad AugAssignAdd NameStore NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If BoolOpAnd CompareEq NameLoad Num CompareEq NameLoad Num body Return CompareEq NameLoad NameLoad If BoolOpAnd CompareEq NameLoad Num CompareGt NameLoad Num body Return BoolOpAnd CompareLtE NameLoad NameLoad CompareLt NameLoad BinOpAdd NameLoad NameLoad If BoolOpAnd CompareGt NameLoad Num CompareEq NameLoad Num body Return NameLoad If BoolOpAnd CompareGt NameLoad Num CompareGt NameLoad Num body Return BoolOpOr BoolOpAnd CompareLtE NameLoad NameLoad CompareLt NameLoad BinOpAdd NameLoad NameLoad BoolOpAnd CompareLtE NameLoad BinOpSub BinOpAdd NameLoad NameLoad Num CompareLt BinOpSub BinOpAdd NameLoad NameLoad Num BinOpAdd NameLoad NameLoad Assert Num Str Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore BinOpSub Num NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore BinOpMult NameLoad Num Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Assign ListStore AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return If AttributeLoad NameLoad attr body Return Assign NameStore NameLoad If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad orelse Assert CompareEq Call AttributeLoad NameLoad attr Num If CompareIs AttributeLoad NameLoad attr NameLoad body Assert AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad Return Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body If BoolOpAnd CompareLt AttributeLoad NameLoad attr NameLoad CompareLtE NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr While NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr If CompareLtE BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Num Assign NameStore NameLoad AugAssignAdd AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Break orelse Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assert NameLoad Return If UnaryOpNot Call AttributeLoad NameLoad attr body Assert AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Return If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad Return If CompareGt Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return If AttributeLoad NameLoad attr body Assert UnaryOpNot AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice BinOpSub AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Return Call NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assert UnaryOpNot AttributeLoad NameLoad attr Str AugAssignAdd AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad AugAssignSub AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body While BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad Assign NameStore Num FunctionDef arguments args NameParam defaults body Assert CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body AugAssignSub AttributeStore NameLoad attr Num If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Expr Call AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse If CompareIsNot AttributeLoad NameLoad attr NameLoad body If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse If BoolOpAnd AttributeLoad NameLoad attr BoolOpOr UnaryOpNot AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Pass decorator_list Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpPow Num Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad body If NameLoad body Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword BinOpMod BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpPow Num Num keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr NameLoad If Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body If AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr orelse Pass Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore NameLoad Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args defaults body FunctionDef arguments args NameParam defaults body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Return TupleLoad NameLoad decorator_list Assign NameStore Call NameLoad Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assert UnaryOpNot AttributeLoad NameLoad attr Assert UnaryOpNot AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert UnaryOpNot AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIs AttributeLoad NameLoad attr NameLoad Assert CompareIs AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam TupleStore NameStore NameStore TupleStore NameStore NameStore defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore BinOpMod Call NameLoad NameLoad Assign NameStore SubscriptStore AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Assert UnaryOpNot AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareLt Call NameLoad NameLoad NameLoad body Return Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Num Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad ExceptHandler type NameLoad body Print Str NameLoad ExceptHandler type NameLoad name NameStore body Print Str NameLoad NameLoad Print Call NameLoad AttributeLoad NameLoad attr Print Call NameLoad AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr orelse Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotIn NameLoad AttributeLoad NameLoad attr body If BoolOpAnd CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad AttributeLoad NameLoad attr Return TryExcept body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list
N/A N/A struct binascii crc32 N/A itertools twisted.python.failure Failure twisted.internet.defer Deferred twisted.internet protocol error reactor defer twisted.internet.main CONNECTION_DONE twisted.python log util vertex tcpdfa vertex.statemachine StateError N/A genConnID N/A N/A N/A itertools count 8 next N/A MAX_PSEUDO_PORT N/A 2 16 N/A _packetFormat !HHLLLBlH N/A _fixedSize N/A N/A struct calcsize _packetFormat N/A N/A _SYN _ACK _FIN _RST _STB N/A N/A 1 n N/A n N/A range 5 _flagprop N/A N/A flag N/A N/A setter N/A N/A self value N/A N/A N/A value N/A N/A N/A self flags flag N/A N/A N/A self flags N/A flag N/A N/A N/A property N/A N/A N/A self N/A N/A bool N/A N/A self flags flag setter N/A relativeSequence N/A N/A wireSequence initialSequence lapNumber N/A N/A N/A  Compute a relative sequence number from a wire sequence number so that we
    can use natural Python comparisons on it, such as <, >, ==.

    @param wireSequence: the sequence number received on the wire.

    @param initialSequence: the ISN for this sequence, negotiated at SYN time.

    @param lapNumber: the number of times that this value has wrapped around
    2**32.
     N/A N/A N/A wireSequence N/A lapNumber N/A 2 32 initialSequence N/A PTCPPacket N/A N/A util FancyStrMixin object N/A N/A showAttributes N/A N/A sourcePseudoPort sourcePseudoPort %d N/A destPseudoPort destPseudoPort %d N/A shortdata data %r N/A niceflags flags %s N/A dlen dlen %d N/A seqNum seq %d N/A ackNum ack %d N/A checksum checksum %x N/A peerAddressTuple peerAddress %r N/A retransmitCount retransmitCount %d N/A syn N/A _flagprop _SYN N/A ack N/A _flagprop _ACK N/A fin N/A _flagprop _FIN N/A rst N/A _flagprop _RST N/A stb N/A _flagprop _STB N/A retransmitCount 50 shortdata N/A N/A N/A N/A get N/A N/A self N/A N/A N/A N/A N/A len N/A self data 13 N/A N/A N/A N/A N/A N/A self data N/A 5 ... N/A N/A self data N/A -5 N/A N/A N/A self data N/A N/A N/A get N/A N/A shortdata N/A property N/A shortdata niceflags N/A N/A N/A N/A get N/A N/A self N/A N/A N/A res N/A N/A N/A f v N/A N/A N/A self syn S N/A N/A self ack A N/A N/A self fin F N/A N/A self rst R N/A N/A self stb T N/A N/A N/A N/A res append N/A N/A f v . N/A N/A N/A join res N/A N/A N/A get N/A N/A niceflags N/A property N/A niceflags create N/A N/A cls sourcePseudoPort destPseudoPort seqNum ackNum data window syn ack fin rst stb destination N/A N/A 1 15 False False False False False None N/A N/A i N/A cls sourcePseudoPort destPseudoPort seqNum ackNum window 0 0 N/A len data data N/A N/A i syn syn N/A N/A i ack ack N/A N/A i fin fin N/A N/A i rst rst N/A N/A i stb stb N/A N/A i checksum N/A N/A i computeChecksum N/A N/A i destination destination N/A i N/A N/A create N/A classmethod create __init__ N/A N/A self sourcePseudoPort destPseudoPort seqNum ackNum window flags checksum dlen data peerAddressTuple seqOffset ackOffset seqLaps ackLaps N/A None 0 0 0 0 N/A N/A N/A self sourcePseudoPort sourcePseudoPort N/A N/A self destPseudoPort destPseudoPort N/A N/A self seqNum seqNum N/A N/A self ackNum ackNum N/A N/A self window window N/A N/A self flags flags N/A N/A self checksum checksum N/A N/A self dlen dlen N/A N/A self data data N/A N/A self peerAddressTuple peerAddressTuple N/A N/A self seqOffset seqOffset N/A N/A self ackOffset ackOffset N/A N/A self seqLaps seqLaps N/A N/A self ackLaps ackLaps N/A segmentLength N/A N/A self N/A N/A N/A RFC page 26: 'The segment length (SEG.LEN) includes both data and sequence
        space occupying controls'
         N/A N/A N/A N/A self dlen N/A self syn N/A self fin N/A relativeSeq N/A N/A self N/A N/A N/A N/A relativeSequence N/A self seqNum N/A self seqOffset N/A self seqLaps N/A relativeAck N/A N/A self N/A N/A N/A N/A relativeSequence N/A self ackNum N/A self ackOffset N/A self ackLaps N/A verifyChecksum N/A N/A self N/A N/A N/A N/A N/A len N/A self data N/A self dlen N/A N/A N/A N/A len N/A self data N/A self dlen N/A N/A N/A GarbageDataError self N/A N/A N/A TruncatedDataError self N/A expected N/A N/A self computeChecksum N/A received N/A self checksum N/A N/A expected received N/A N/A N/A ChecksumMismatchError expected received N/A computeChecksum N/A N/A self N/A N/A N/A N/A crc32 N/A self data N/A decode N/A N/A cls bytes hostPortPair N/A N/A N/A fields N/A N/A struct unpack _packetFormat N/A bytes N/A _fixedSize N/A N/A sourcePseudoPort destPseudoPort seq ack window flags checksum dlen fields N/A data N/A bytes N/A _fixedSize N/A pkt N/A cls sourcePseudoPort destPseudoPort seq ack window flags checksum dlen data hostPortPair N/A pkt N/A N/A decode N/A classmethod decode mustRetransmit N/A N/A self N/A N/A N/A Check to see if this packet must be retransmitted until it was received.
         N/A N/A N/A self syn N/A self fin N/A self dlen N/A N/A True N/A False N/A encode N/A N/A self N/A N/A N/A dlen N/A len N/A self data N/A checksum N/A N/A self computeChecksum N/A N/A N/A N/A struct pack _packetFormat N/A self sourcePseudoPort N/A self destPseudoPort N/A self seqNum N/A self ackNum N/A self window N/A self flags checksum dlen N/A self data N/A fragment N/A N/A self mtu N/A N/A N/A N/A N/A self dlen mtu N/A N/A N/A self N/A N/A N/A self syn should not be originating syn packets w/ data N/A seqOfft 0 N/A L N/A N/A chunk N/A iterchunks N/A self data mtu N/A N/A last N/A N/A self create N/A self sourcePseudoPort N/A self destPseudoPort N/A N/A self seqNum seqOfft N/A self ackNum chunk N/A self window destination N/A self destination ack N/A self ack N/A N/A N/A L append last N/A seqOfft N/A len chunk N/A N/A self fin N/A N/A N/A last fin N/A self fin N/A N/A last checksum N/A N/A last computeChecksum N/A L N/A N/A iterchunks N/A N/A data chunksize N/A N/A N/A iterate chunks of data
     N/A offt 0 N/A N/A offt N/A len data N/A N/A N/A N/A data N/A offt N/A offt chunksize N/A offt chunksize N/A ISN N/A N/A N/A N/A N/A 
    Initial Sequence Number generator.
     N/A 0 N/A segmentAcceptable N/A N/A RCV_NXT RCV_WND SEG_SEQ SEG_LEN N/A N/A N/A N/A N/A SEG_LEN 0 N/A RCV_WND 0 N/A N/A N/A SEG_SEQ RCV_NXT N/A N/A N/A SEG_LEN 0 N/A RCV_WND 0 N/A N/A N/A N/A RCV_NXT SEG_SEQ N/A SEG_SEQ N/A RCV_NXT RCV_WND N/A N/A N/A SEG_LEN 0 N/A RCV_WND 0 N/A N/A False N/A N/A N/A SEG_LEN 0 N/A RCV_WND 0 N/A N/A N/A N/A N/A RCV_NXT SEG_SEQ N/A SEG_SEQ N/A RCV_NXT RCV_WND N/A N/A RCV_NXT N/A N/A SEG_SEQ SEG_LEN 1 N/A N/A N/A SEG_SEQ SEG_LEN 1 N/A RCV_NXT RCV_WND N/A 0 Should be impossible to get here. N/A False N/A BadPacketError N/A Exception N/A N/A 
    A packet was bad for some reason.
     N/A ChecksumMismatchError N/A Exception N/A N/A 
    The checksum and data received did not match.
     N/A TruncatedDataError N/A Exception N/A N/A 
    The packet was truncated in transit, and all of the data did not arrive.
     N/A GarbageDataError N/A Exception N/A N/A 
    Too much data was received (???)
     N/A PTCPConnection N/A N/A tcpdfa TCP N/A N/A 
    Implementation of RFC 793 state machine.

    @ivar oldestUnackedSendSeqNum: (TCP RFC: SND.UNA) The oldest (relative)
    sequence number referring to an octet which we have sent or may send which
    is unacknowledged.  This begins at 0, which is special because it is not
    for an octet, but rather for the initial SYN packet.  Unless it is 0, this
    represents the sequence number of self._outgoingBytes[0].

    @ivar nextSendSeqNum: (TCP RFC: SND.NXT) The next (relative) sequence
    number that we will send to our peer after the current buffered segments
    have all been acknowledged.  This is the sequence number of the
    not-yet-extant octet in the stream at
    self._outgoingBytes[len(self._outgoingBytes)].

    @ivar nextRecvSeqNum: (TCP RFC: RCV.NXT) The next (relative) sequence
    number that the peer should send to us if they want to send more data;
    their first unacknowledged sequence number as far as we are concerned; the
    left or lower edge of the receive window; the sequence number of the first
    octet that has not been delivered to the application.  changed whenever we
    receive an appropriate ACK.

    @ivar peerSendISN: the initial sequence number that the peer sent us during
    the negotiation phase.  All peer-relative sequence numbers are computed
    using this.  (see C{relativeSequence}).

    @ivar hostSendISN: the initial sequence number that the we sent during the
    negotiation phase.  All host-relative sequence numbers are computed using
    this.  (see C{relativeSequence})

    @ivar retransmissionQueue: a list of packets to be re-sent until their
    acknowledgements come through.

    @ivar recvWindow: (TCP RFC: RCV.WND) - the size [in octets] of the current
    window allowed by this host, to be in transit from the other host.

    @ivar sendWindow: (TCP RFC: SND.WND) - the size [in octets] of the current
    window allowed by our peer, to be in transit from us.

     N/A mtu N/A 512 _fixedSize N/A recvWindow mtu N/A sendWindow mtu N/A sendWindowRemaining N/A mtu 2 N/A protocol None __init__ N/A N/A self hostPseudoPort peerPseudoPort ptcp factory peerAddressTuple N/A N/A N/A N/A N/A N/A tcpdfa TCP __init__ self N/A N/A self hostPseudoPort hostPseudoPort N/A N/A self peerPseudoPort peerPseudoPort N/A N/A self ptcp ptcp N/A N/A self factory factory N/A N/A self _receiveBuffer N/A N/A N/A self retransmissionQueue N/A N/A N/A self peerAddressTuple peerAddressTuple N/A N/A self oldestUnackedSendSeqNum 0 N/A N/A self nextSendSeqNum 0 N/A N/A self hostSendISN 0 N/A N/A self nextRecvSeqNum 0 N/A N/A self peerSendISN 0 N/A N/A self setPeerISN False N/A N/A peerSendISN None packetReceived N/A N/A self packet N/A N/A N/A N/A packet stb N/A N/A N/A N/A self mtu N/A N/A struct unpack !H N/A packet data N/A rq N/A N/A pkt N/A self retransmissionQueue N/A N/A N/A N/A rq extend N/A N/A pkt fragment N/A self mtu N/A N/A self retransmissionQueue rq N/A N/A N/A self _paused N/A N/A N/A generatedStateMachineInput False N/A N/A packet syn N/A N/A N/A packet dlen N/A N/A N/A BadPacketError N/A currently no data allowed in SYN packets: %r N/A packet N/A N/A N/A N/A N/A packet segmentLength 1 N/A N/A N/A self peerAddressTuple None N/A N/A N/A self wasEverListen Clients must specify a connect address. N/A N/A self peerAddressTuple N/A packet peerAddressTuple N/A N/A N/A N/A self peerAddressTuple N/A packet peerAddressTuple N/A N/A self setPeerISN N/A N/A N/A N/A self peerSendISN N/A packet seqNum N/A N/A N/A BadPacketError N/A Peer ISN was already set to %s but incoming packet tried to set it to %s N/A N/A self peerSendISN N/A packet seqNum N/A N/A N/A self retransmissionQueue N/A N/A N/A N/A self originate ack True N/A N/A N/A self setPeerISN True N/A N/A self peerSendISN N/A packet seqNum N/A N/A self nextRecvSeqNum N/A N/A packet segmentLength N/A N/A N/A packet ack N/A N/A generatedStateMachineInput True N/A N/A N/A self input N/A tcpdfa SYN N/A SEG_ACK N/A N/A packet relativeAck N/A N/A packet ack N/A N/A N/A N/A N/A self oldestUnackedSendSeqNum SEG_ACK N/A SEG_ACK N/A self nextSendSeqNum N/A N/A rq N/A self retransmissionQueue N/A rq N/A N/A segmentOnQueue N/A rq N/A 0 N/A qSegSeq N/A N/A segmentOnQueue relativeSeq N/A N/A N/A qSegSeq N/A N/A segmentOnQueue segmentLength SEG_ACK N/A N/A N/A N/A rq pop 0 N/A sminput None N/A N/A self sendWindowRemaining N/A N/A segmentOnQueue segmentLength N/A N/A segmentOnQueue syn N/A N/A N/A packet syn N/A N/A sminput N/A tcpdfa SYN_ACK N/A N/A sminput N/A tcpdfa ACK N/A N/A N/A segmentOnQueue fin N/A N/A sminput N/A tcpdfa ACK N/A N/A sminput None N/A N/A generatedStateMachineInput True N/A N/A N/A self input sminput N/A N/A N/A N/A N/A N/A self _writeBufferEmpty N/A N/A self oldestUnackedSendSeqNum SEG_ACK N/A N/A packet syn N/A N/A generatedStateMachineInput N/A N/A N/A N/A N/A packet segmentLength N/A N/A N/A packet ack N/A What the _HELL_ is wrong with this packet: N/A str packet N/A N/A N/A N/A segmentAcceptable N/A self nextRecvSeqNum N/A self recvWindow N/A N/A packet relativeSeq N/A N/A packet segmentLength N/A N/A N/A N/A self retransmissionQueue N/A N/A N/A N/A self originate ack True N/A N/A N/A N/A N/A packet relativeSeq N/A self nextRecvSeqNum N/A N/A N/A N/A packet dlen N/A N/A N/A N/A packet syn no seriously I _do not_ know how to handle this N/A usefulData N/A N/A packet data N/A N/A N/A self nextRecvSeqNum N/A N/A packet relativeSeq N/A N/A N/A self protocol None N/A N/A N/A N/A N/A N/A N/A self protocol dataReceived usefulData N/A N/A N/A N/A N/A N/A log err N/A N/A N/A self loseConnection N/A N/A self nextRecvSeqNum N/A N/A packet segmentLength N/A N/A N/A self state N/A tcpdfa ESTABLISHED N/A N/A N/A N/A self originate ack True N/A N/A packet fin N/A N/A N/A N/A self input N/A tcpdfa FIN N/A getHost N/A N/A self N/A N/A N/A tupl N/A N/A N/A N/A self ptcp transport getHost N/A N/A PTCPAddress N/A N/A tupl host N/A tupl port N/A self pseudoPortPair N/A getPeer N/A N/A self N/A N/A N/A N/A PTCPAddress N/A self peerAddressTuple N/A self pseudoPortPair N/A N/A _outgoingBytes N/A _nagle None write N/A N/A self bytes N/A N/A N/A N/A N/A self disconnected Writing to a transport that was already disconnected. N/A N/A self _outgoingBytes bytes N/A N/A N/A self _writeLater N/A writeSequence N/A N/A self seq N/A N/A N/A N/A N/A self write N/A N/A join seq N/A _writeLater N/A N/A self N/A N/A N/A N/A N/A self _nagle None N/A N/A N/A self _nagle N/A N/A reactor callLater 0.001 N/A self _reallyWrite N/A _originateOneData N/A N/A self N/A N/A N/A amount N/A min N/A self sendWindowRemaining N/A self mtu N/A sendOut N/A N/A self _outgoingBytes N/A amount N/A N/A self _outgoingBytes N/A N/A self _outgoingBytes N/A amount N/A N/A self sendWindowRemaining N/A len sendOut N/A N/A N/A self originate ack True data sendOut N/A _reallyWrite N/A N/A self N/A N/A N/A N/A self _nagle None N/A N/A self _outgoingBytes N/A N/A N/A N/A self sendWindowRemaining N/A self _outgoingBytes N/A N/A N/A N/A self _originateOneData N/A N/A _retransmitter None N/A _retransmitTimeout 0.5 _retransmitLater N/A N/A self N/A N/A N/A N/A N/A self state N/A tcpdfa CLOSED N/A N/A N/A self _retransmitter None N/A N/A N/A self _retransmitter N/A N/A reactor callLater N/A self _retransmitTimeout N/A self _reallyRetransmit N/A _stopRetransmitting N/A N/A self N/A N/A N/A N/A N/A self _retransmitter None N/A N/A N/A N/A N/A self _retransmitter cancel N/A N/A self _retransmitter None N/A N/A N/A self _nagle None N/A N/A N/A N/A N/A self _nagle cancel N/A N/A self _nagle None N/A N/A N/A self _closeWaitLoseConnection None N/A N/A N/A N/A N/A self _closeWaitLoseConnection cancel N/A N/A self _closeWaitLoseConnection None N/A _reallyRetransmit N/A N/A self N/A N/A N/A N/A self _retransmitter None N/A N/A self retransmissionQueue N/A N/A packet N/A self retransmissionQueue N/A N/A N/A packet retransmitCount 1 N/A N/A packet retransmitCount N/A N/A N/A packet ackNum N/A N/A self currentAckNum N/A N/A N/A N/A self ptcp sendPacket packet N/A N/A N/A N/A self input N/A tcpdfa TIMEOUT N/A N/A N/A N/A self _retransmitLater N/A N/A disconnecting False loseConnection N/A N/A self N/A N/A N/A N/A N/A self disconnecting N/A N/A N/A self disconnecting True N/A N/A N/A self _outgoingBytes N/A N/A N/A N/A self _writeBufferEmpty N/A _writeBufferEmpty N/A N/A self N/A N/A N/A N/A self _outgoingBytes N/A N/A N/A N/A self _reallyWrite N/A N/A N/A N/A self producer None N/A N/A N/A N/A N/A self streamingProducer N/A self producerPaused N/A N/A N/A self producerPaused False N/A N/A N/A N/A self producer resumeProducing N/A N/A N/A N/A self disconnecting N/A N/A N/A self disconnected N/A N/A self state N/A tcpdfa CLOSE_WAIT N/A N/A N/A N/A self input N/A tcpdfa APP_CLOSE N/A _writeBufferFull N/A N/A self N/A N/A N/A N/A N/A N/A self producer None N/A N/A self producerPaused N/A N/A N/A self producerPaused True N/A N/A N/A N/A self producer pauseProducing N/A N/A N/A N/A disconnected False N/A producer None N/A producerPaused False N/A streamingProducer False registerProducer N/A N/A self producer streaming N/A N/A N/A N/A N/A self producer None N/A N/A N/A RuntimeError N/A Cannot register producer %s, because producer %s was never unregistered. N/A producer N/A self producer N/A N/A self disconnected N/A N/A N/A N/A producer stopProducing N/A N/A N/A self producer producer N/A N/A self streamingProducer streaming N/A N/A N/A streaming N/A N/A self _outgoingBytes N/A N/A N/A N/A producer resumeProducing N/A unregisterProducer N/A N/A self N/A N/A N/A N/A self producer None N/A N/A N/A self _outgoingBytes N/A N/A N/A N/A self _writeBufferEmpty N/A N/A _paused False pauseProducing N/A N/A self N/A N/A N/A N/A self _paused True N/A resumeProducing N/A N/A self N/A N/A N/A N/A self _paused False N/A currentAckNum N/A N/A self N/A N/A N/A N/A N/A N/A self nextRecvSeqNum N/A self peerSendISN N/A 2 32 N/A originate N/A N/A self data syn ack fin N/A False False False N/A N/A syn N/A N/A N/A N/A self nextSendSeqNum 0 N/A N/A N/A self hostSendISN 0 N/A p N/A N/A PTCPPacket create N/A self hostPseudoPort N/A self peerPseudoPort seqNum N/A N/A N/A self nextSendSeqNum N/A self hostSendISN N/A 2 32 ackNum N/A N/A self currentAckNum data data window N/A self recvWindow syn syn ack ack fin fin destination N/A self peerAddressTuple N/A sl N/A N/A p segmentLength N/A N/A self nextSendSeqNum sl N/A N/A N/A p mustRetransmit N/A N/A N/A self retransmissionQueue N/A N/A N/A N/A N/A self retransmissionQueue N/A -1 fin N/A N/A N/A AssertionError N/A Sending %r after FIN??! N/A p N/A N/A N/A N/A self retransmissionQueue append p N/A N/A N/A self _retransmitLater N/A N/A N/A self sendWindowRemaining N/A N/A N/A N/A self _writeBufferFull N/A N/A N/A N/A N/A N/A self ptcp sendPacket p N/A transition_SYN_SENT_to_CLOSED N/A N/A self N/A N/A N/A 
        The connection never got anywhere.  Goodbye.
         N/A N/A N/A N/A self factory clientConnectionFailed None N/A N/A error TimeoutError N/A N/A wasEverListen False enter_LISTEN N/A N/A self N/A N/A N/A N/A self wasEverListen True N/A enter_CLOSED N/A N/A self N/A N/A N/A N/A N/A N/A self ptcp connectionClosed self N/A N/A N/A self _stopRetransmitting N/A N/A N/A self _timeWaitCall None N/A N/A N/A N/A N/A self _timeWaitCall cancel N/A N/A self _timeWaitCall None N/A N/A _timeWaitCall None N/A _timeWaitTimeout 0.01 enter_TIME_WAIT N/A N/A self N/A N/A N/A N/A N/A self _stopRetransmitting N/A N/A self _timeWaitCall N/A N/A reactor callLater N/A self _timeWaitTimeout N/A self _do2mslTimeout N/A _do2mslTimeout N/A N/A self N/A N/A N/A N/A self _timeWaitCall None N/A N/A N/A self input N/A tcpdfa TIMEOUT N/A N/A peerAddressTuple None transition_LISTEN_to_SYN_SENT N/A N/A self N/A N/A N/A 
        Uh, what?  We were listening and we tried to send some bytes.
        This is an error for PTCP.
         N/A N/A StateError You can't write anything until someone connects to you. N/A pseudoPortPair N/A N/A N/A N/A get N/A N/A self N/A N/A N/A N/A N/A self hostPseudoPort N/A self peerPseudoPort N/A N/A N/A get N/A N/A pseudoPortPair N/A property N/A pseudoPortPair enter_ESTABLISHED N/A N/A self N/A N/A N/A 
        We sent out SYN, they acknowledged it.  Congratulations, you
        have a new baby connection.
         N/A N/A N/A self disconnecting N/A N/A N/A self disconnected N/A N/A N/A p N/A N/A N/A self factory buildProtocol N/A PTCPAddress N/A self peerAddressTuple N/A self pseudoPortPair N/A N/A N/A p makeConnection self N/A N/A N/A N/A N/A N/A log msg Exception during PTCP connection setup. N/A N/A N/A log err N/A N/A N/A self loseConnection N/A N/A N/A self protocol p N/A exit_ESTABLISHED N/A N/A self N/A N/A N/A N/A N/A self disconnected N/A N/A self disconnected True N/A N/A N/A N/A N/A N/A self protocol connectionLost N/A Failure CONNECTION_DONE N/A N/A N/A N/A N/A N/A log err N/A N/A self protocol None N/A N/A N/A self producer None N/A N/A N/A N/A N/A N/A N/A self producer stopProducing N/A N/A N/A N/A N/A N/A log err N/A N/A self producer None N/A N/A _closeWaitLoseConnection None enter_CLOSE_WAIT N/A N/A self N/A N/A N/A N/A self _closeWaitLoseConnection N/A N/A reactor callLater 0.01 N/A self _loseConnectionBecauseOfCloseWait N/A _loseConnectionBecauseOfCloseWait N/A N/A self N/A N/A N/A N/A self _closeWaitLoseConnection None N/A N/A N/A self loseConnection N/A immediateShutdown N/A N/A self N/A N/A N/A _IMMEDIATELY_ shut down this connection, sending one (non-retransmitted)
        app-close packet, emptying our buffers, clearing our producer and
        getting ready to die right after this call.
         N/A N/A self _outgoingBytes N/A N/A N/A self state N/A tcpdfa ESTABLISHED N/A N/A N/A N/A self input N/A tcpdfa APP_CLOSE N/A N/A N/A self _stopRetransmitting N/A N/A N/A self _reallyRetransmit N/A N/A N/A self input N/A tcpdfa TIMEOUT N/A N/A N/A self _retransmitter None N/A N/A N/A self _nagle None N/A output_ACK N/A N/A self N/A N/A N/A N/A N/A self originate ack True N/A output_FIN N/A N/A self N/A N/A N/A N/A N/A self originate fin True N/A output_SYN_ACK N/A N/A self N/A N/A N/A N/A N/A self originate syn True ack True N/A output_SYN N/A N/A self N/A N/A N/A N/A N/A self originate syn True N/A N/A PTCPAddress N/A object N/A __init__ N/A N/A self N/A host port N/A pseudoHostPort pseudoPeerPort N/A N/A N/A N/A self host host N/A N/A self port port N/A N/A self pseudoHostPort pseudoHostPort N/A N/A self pseudoPeerPort pseudoPeerPort N/A __repr__ N/A N/A self N/A N/A N/A N/A PTCPAddress((%r, %r), (%r, %r)) N/A N/A self host N/A self port N/A self pseudoHostPort N/A self pseudoPeerPort N/A N/A _PendingEvent N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self listeners N/A N/A deferred N/A N/A self N/A N/A N/A d N/A Deferred N/A N/A N/A N/A self listeners append d N/A d N/A callback N/A N/A self result N/A N/A N/A l N/A self listeners N/A N/A self listeners N/A N/A d l N/A N/A N/A N/A d callback result N/A errback N/A N/A self result N/A None N/A N/A N/A result None N/A N/A result N/A Failure N/A l N/A self listeners N/A N/A self listeners N/A N/A d l N/A N/A N/A N/A d errback result N/A N/A PTCP N/A N/A protocol DatagramProtocol N/A N/A 
    L{PTCP} implements a strongly TCP-like protocol on top of UDP.  It
    provides a transport which is connection-oriented, streaming,
    ordered, and reliable.

    @ivar factory: A L{ServerFactory} which is used to create
        L{IProtocol} providers whenever a new PTCP connection is made
        to this port.

    @ivar _connections: A mapping of endpoint addresses to connection
        objects.  These are the active connections being multiplexed
        over this UDP port.  Many PTCP connections may run over the
        same L{PTCP} instance, communicating with many different
        remote hosts as well as multiplexing different PTCP
        connections to the same remote host.  The mapping keys,
        endpoint addresses, are three-tuples of:

            - The destination pseudo-port which is always C{1}
            - The source pseudo-port
            - A (host, port) tuple giving the UDP address of a PTCP
              peer holding the other side of the connection

        The mapping values, connection objects, are L{PTCPConnection}
        instances.
    @type _connections: C{dict}

     __init__ N/A N/A self factory N/A N/A N/A N/A self factory factory N/A N/A self _allConnectionsClosed N/A _PendingEvent N/A connect N/A N/A self factory host port pseudoPort N/A 1 N/A N/A 
        Attempt to establish a new connection via PTCP to the given
        remote address.

        @param factory: A L{ClientFactory} which will be used to
            create an L{IProtocol} provider if the connection is
            successfully set up, or which will have failure callbacks
            invoked on it otherwise.

        @param host: The IP address of another listening PTCP port to
            connect to.
        @type host: C{str}

        @param port: The port number of that other listening PTCP port
            to connect to.
        @type port: C{int}

        @param pseudoPort: Not really implemented.  Do not pass a
            value for this parameter or things will break.

        @return: A L{PTCPConnection} instance representing the new
            connection, but you really shouldn't use this for
            anything.  Write a protocol!
         N/A sourcePseudoPort N/A N/A genConnID MAX_PSEUDO_PORT N/A conn N/A N/A self _connections N/A N/A pseudoPort sourcePseudoPort N/A host port N/A PTCPConnection sourcePseudoPort pseudoPort self factory N/A host port N/A N/A N/A conn input N/A tcpdfa APP_ACTIVE_OPEN N/A conn N/A sendPacket N/A N/A self packet N/A N/A N/A N/A self transportGoneAway N/A N/A N/A N/A N/A N/A self transport write N/A N/A packet encode N/A packet destination N/A startProtocol N/A N/A self N/A N/A N/A N/A self transportGoneAway False N/A N/A self _lastConnID 10 N/A N/A self _connections N/A N/A _finalCleanup N/A N/A self N/A N/A N/A 
        Clean up all of our connections by issuing application-level close and
        stop notifications, sending hail-mary final FIN packets (which may not
        reach the other end, but nevertheless can be useful) when possible.
         N/A conn N/A N/A N/A self _connections values N/A N/A N/A N/A conn immediateShutdown N/A N/A N/A self _connections N/A stopProtocol N/A N/A self N/A N/A N/A 
        Notification from twisted that our underlying port has gone away;
        make sure we're not going to try to send any packets through our
        transport and blow up, then shut down all of our protocols, issuing
        appr
        opriate application-level messages.
         N/A N/A self transportGoneAway True N/A N/A N/A self _finalCleanup N/A cleanupAndClose N/A N/A self N/A N/A N/A 
        Clean up all remaining connections, then close our transport.

        Although in a pinch we will do cleanup after our socket has gone away
        (if it does so unexpectedly, above in stopProtocol), we would really
        prefer to do cleanup while we still have access to a transport, since
        that way we can force out a few final packets and save the remote
        application an awkward timeout (if it happens to get through, which
        is generally likely).
         N/A N/A N/A self _finalCleanup N/A N/A N/A self _stop N/A datagramReceived N/A N/A self bytes addr N/A N/A N/A N/A N/A len bytes _fixedSize N/A N/A N/A pkt N/A N/A PTCPPacket decode bytes addr N/A N/A N/A N/A N/A pkt verifyChecksum N/A N/A N/A TruncatedDataError N/A N/A N/A N/A self sendPacket N/A N/A PTCPPacket create N/A pkt destPseudoPort N/A pkt sourcePseudoPort 0 0 N/A N/A struct pack !H N/A len N/A pkt data stb True destination addr N/A N/A GarbageDataError N/A N/A garbage data! pkt N/A N/A ChecksumMismatchError N/A cme N/A N/A bad checksum pkt cme N/A N/A repr N/A pkt data N/A N/A hex N/A pkt checksum N/A hex N/A N/A pkt computeChecksum N/A N/A N/A N/A self packetReceived pkt N/A N/A stopped False _stop N/A N/A self result N/A None N/A N/A N/A N/A self stopped N/A N/A N/A self stopped True N/A N/A N/A N/A self transport stopListening N/A N/A N/A N/A defer succeed None N/A waitForAllConnectionsToClose N/A N/A self N/A N/A N/A 
        Wait for all currently-open connections to enter the 'CLOSED' state.
        Currently this is only usable from test fixtures.
         N/A N/A N/A self _connections N/A N/A N/A N/A self _stop N/A N/A N/A N/A N/A N/A self _allConnectionsClosed deferred addBoth N/A self _stop N/A connectionClosed N/A N/A self ptcpConn N/A N/A N/A packey N/A N/A ptcpConn peerPseudoPort N/A ptcpConn hostPseudoPort N/A ptcpConn peerAddressTuple N/A N/A N/A self _connections N/A packey N/A N/A N/A N/A self transportGoneAway N/A N/A self _connections N/A N/A self factory None N/A N/A N/A N/A self _stop N/A N/A N/A self _connections N/A N/A N/A N/A N/A self _allConnectionsClosed callback None N/A packetReceived N/A N/A self packet N/A N/A N/A packey N/A N/A packet sourcePseudoPort N/A packet destPseudoPort N/A packet peerAddressTuple N/A N/A packey N/A self _connections N/A N/A N/A N/A N/A packet flags _SYN N/A N/A packet destPseudoPort 1 N/A N/A conn N/A PTCPConnection N/A packet destPseudoPort N/A packet sourcePseudoPort self N/A self factory N/A packet peerAddressTuple N/A N/A N/A conn input N/A tcpdfa APP_PASSIVE_OPEN N/A N/A N/A self _connections N/A packey conn N/A N/A N/A N/A log msg N/A corrupted packet? %r %r %r N/A packet packey N/A self _connections N/A N/A N/A N/A N/A N/A N/A N/A self _connections N/A packey packetReceived packet N/A N/A N/A N/A N/A N/A log msg N/A PTCPConnection error on %r: N/A packet N/A N/A N/A log err N/A N/A N/A self _connections N/A packey N/A N/A