Send data to a remote peer
| 67 | |
| 68 | |
| 69 | class SendData(ConnectionCommand): |
| 70 | """ |
| 71 | Send data to a remote peer |
| 72 | """ |
| 73 | |
| 74 | data: bytes |
| 75 | |
| 76 | def __init__(self, connection: Connection, data: bytes): |
| 77 | super().__init__(connection) |
| 78 | self.data = data |
| 79 | |
| 80 | def __repr__(self): |
| 81 | target = str(self.connection).split("(", 1)[0].lower() |
| 82 | return f"SendData({target}, {self.data!r})" |
| 83 | |
| 84 | |
| 85 | class OpenConnection(ConnectionCommand): |
no outgoing calls
searching dependent graphs…