(self, sock)
| 328 | _add(r, self.wrap2.rsock) |
| 329 | |
| 330 | def callback(self, sock): |
| 331 | self.wrap1.try_connect() |
| 332 | self.wrap2.try_connect() |
| 333 | self.wrap1.fill() |
| 334 | self.wrap2.fill() |
| 335 | self.wrap1.copy_to(self.wrap2) |
| 336 | self.wrap2.copy_to(self.wrap1) |
| 337 | if self.wrap1.buf and self.wrap2.shut_write: |
| 338 | self.wrap1.buf = [] |
| 339 | self.wrap1.noread() |
| 340 | if self.wrap2.buf and self.wrap1.shut_write: |
| 341 | self.wrap2.buf = [] |
| 342 | self.wrap2.noread() |
| 343 | if (self.wrap1.shut_read and self.wrap2.shut_read and |
| 344 | not self.wrap1.buf and not self.wrap2.buf): |
| 345 | self.ok = False |
| 346 | self.wrap1.nowrite() |
| 347 | self.wrap2.nowrite() |
| 348 | |
| 349 | |
| 350 | class Mux(Handler): |
nothing calls this directly
no test coverage detected