(self, bufsize, flags=0)
| 125 | return conn, conn.peer_address |
| 126 | |
| 127 | def recv(self, bufsize, flags=0): |
| 128 | # pylint: disable=unused-argument |
| 129 | if not self._connected: |
| 130 | raise OSError(54, 'Connection reset by peer') |
| 131 | if not len(self.rdata) > 0: |
| 132 | return b'' |
| 133 | data = self.rdata.pop(0) |
| 134 | if isinstance(data, Exception): |
| 135 | raise data |
| 136 | return data |
| 137 | |
| 138 | def send(self, data): |
| 139 | if self.peer_address is None or not self._connected: |
no outgoing calls
no test coverage detected