(self)
| 292 | _add(r, self.wrap2.rsock) |
| 293 | |
| 294 | def callback(self): |
| 295 | self.wrap1.try_connect() |
| 296 | self.wrap2.try_connect() |
| 297 | self.wrap1.fill() |
| 298 | self.wrap2.fill() |
| 299 | self.wrap1.copy_to(self.wrap2) |
| 300 | self.wrap2.copy_to(self.wrap1) |
| 301 | if self.wrap1.buf and self.wrap2.shut_write: |
| 302 | self.wrap1.buf = [] |
| 303 | self.wrap1.noread() |
| 304 | if self.wrap2.buf and self.wrap1.shut_write: |
| 305 | self.wrap2.buf = [] |
| 306 | self.wrap2.noread() |
| 307 | if (self.wrap1.shut_read and self.wrap2.shut_read and |
| 308 | not self.wrap1.buf and not self.wrap2.buf): |
| 309 | self.ok = False |
| 310 | self.wrap1.nowrite() |
| 311 | self.wrap2.nowrite() |
| 312 | |
| 313 | |
| 314 | class Mux(Handler): |
nothing calls this directly
no test coverage detected