MCPcopy
hub / github.com/shadowsocks/shadowsocks / add

Method add

shadowsocks/eventloop.py:170–173  ·  view source on GitHub ↗
(self, f, mode, handler)

Source from the content-addressed store, hash-verified

168 return [(self._fdmap[fd][0], fd, event) for fd, event in events]
169
170 def add(self, f, mode, handler):
171 fd = f.fileno()
172 self._fdmap[fd] = (f, handler)
173 self._impl.register(fd, mode)
174
175 def remove(self, f):
176 fd = f.fileno()

Callers 12

sweepMethod · 0.80
add_to_loopMethod · 0.80
handle_eventMethod · 0.80
_handle_serverMethod · 0.80
add_to_loopMethod · 0.80
__init__Method · 0.80
registerMethod · 0.80
__init__Method · 0.80
_handle_dns_resolvedMethod · 0.80
add_to_loopMethod · 0.80
autoban.pyFile · 0.80

Calls 1

registerMethod · 0.45

Tested by

no test coverage detected