(self, address)
| 342 | return self.socket.bind(addr) |
| 343 | |
| 344 | def connect(self, address): |
| 345 | self.connected = False |
| 346 | self.connecting = True |
| 347 | err = self.socket.connect_ex(address) |
| 348 | if err in (EINPROGRESS, EALREADY, EWOULDBLOCK) \ |
| 349 | or err == EINVAL and os.name == 'nt': |
| 350 | self.addr = address |
| 351 | return |
| 352 | if err in (0, EISCONN): |
| 353 | self.addr = address |
| 354 | self.handle_connect_event() |
| 355 | else: |
| 356 | raise OSError(err, errorcode[err]) |
| 357 | |
| 358 | def accept(self): |
| 359 | # XXX can return either an address pair or None |
nothing calls this directly
no test coverage detected