Common functions for the SSH classes.

Maintainer: Paul Swartz

Variable __all__ Undocumented
Function NS net string
Function getNS get net string
Function MP Undocumented
Function getMP No summary
Function ffs first from second goes through the first list, looking for items in the second, returns the first one
Function install Undocumented
__all__ =
Undocumented
(type: List[str])
def NS(t): (source)

net string

def getNS(s, count=1): (source)

get net string

def MP(number): (source)
Undocumented
def getMP(data, count=1): (source)

Get multiple precision integer out of the string. A multiple precision integer is stored as a 4-byte length followed by length bytes of the integer. If count is specified, get count integers out of the string. The return value is a tuple of count integers followed by the rest of the data.

def ffs(c, s): (source)

first from second goes through the first list, looking for items in the second, returns the first one

def install(): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2020-03-20 23:54:06.