(self, msg)
| 1129 | return None |
| 1130 | |
| 1131 | def write(self, msg): |
| 1132 | # type: (bytes) -> int |
| 1133 | if isinstance(self.wr, int): |
| 1134 | return os.write(self.wr, msg) |
| 1135 | elif self.wr: |
| 1136 | return self.wr.send(msg) |
| 1137 | return 0 |
| 1138 | |
| 1139 | def recv(self, n=65535): |
| 1140 | # type: (int) -> Optional[bytes] |