Return a connection object connected to the socket given by `address`
(address)
| 677 | |
| 678 | |
| 679 | def SocketClient(address): |
| 680 | ''' |
| 681 | Return a connection object connected to the socket given by `address` |
| 682 | ''' |
| 683 | family = address_type(address) |
| 684 | with socket.socket( getattr(socket, family) ) as s: |
| 685 | s.setblocking(True) |
| 686 | s.connect(address) |
| 687 | return Connection(s.detach()) |
| 688 | |
| 689 | # |
| 690 | # Definitions for connections based on named pipes |
no test coverage detected
searching dependent graphs…