Synchronously transfer data to the specified address.
(self, session_id: str, buffer: int, peer_buffer_address: int, length: int)
| 181 | retry_count + 1, |
| 182 | session_id, |
| 183 | int(buffer), |
| 184 | int(peer_buffer_address), |
| 185 | int(length), |
| 186 | ) |
| 187 | if attempt < retry_count: |
| 188 | time.sleep(retry_backoff_s) |
| 189 | |
| 190 | logger.error("Transfer Return Error after retries") |
| 191 | return -1 |
| 192 | return -1 |
| 193 | |
| 194 | def get_localhost(self): |
| 195 | return self.config.local_hostname |
| 196 | |
| 197 | def get_session_id(self): |
| 198 | return self.session_id |