MCPcopy
hub / github.com/shadowsocks/shadowsocks / register

Method register

shadowsocks/eventloop.py:122–128  ·  view source on GitHub ↗
(self, fd, mode)

Source from the content-addressed store, hash-verified

120 return results.items()
121
122 def register(self, fd, mode):
123 if mode & POLL_IN:
124 self._r_list.add(fd)
125 if mode & POLL_OUT:
126 self._w_list.add(fd)
127 if mode & POLL_ERR:
128 self._x_list.add(fd)
129
130 def unregister(self, fd):
131 if fd in self._r_list:

Callers 1

modifyMethod · 0.95

Calls 1

addMethod · 0.80

Tested by

no test coverage detected