MCPcopy Create free account
hub / github.com/ActiveState/code / __init__

Method __init__

recipes/Python/572159_SPICE/recipe-572159.py:161–173  ·  view source on GitHub ↗

Initialize the Socket_Crypt object.

(self, major, minor, socket)

Source from the content-addressed store, hash-verified

159 'Socket_Crypt(major, minor, socket) -> Socket_Crypt'
160
161 def __init__(self, major, minor, socket):
162 'Initialize the Socket_Crypt object.'
163 _check_major(major)
164 _check_minor(minor)
165 self.__em1 = _encode_map_1(major)
166 self.__em2 = _encode_map_2(minor)
167 self.__dm1 = _decode_map_1(minor)
168 self.__dm2 = _decode_map_2(major)
169 self.__major = major
170 self.__minor = minor
171 self.__socket = socket
172 self.__tail = ''
173 self.__tails = {}
174
175 def accept(self):
176 'Return a new Socket_Crypt and address.'

Callers

nothing calls this directly

Calls 6

_encode_map_1Function · 0.85
_encode_map_2Function · 0.85
_decode_map_1Function · 0.85
_decode_map_2Function · 0.85
_check_majorFunction · 0.70
_check_minorFunction · 0.70

Tested by

no test coverage detected