| 449 | } |
| 450 | |
| 451 | bool RawSiteToSiteClient::bootstrap() { |
| 452 | if (peer_state_ == READY) |
| 453 | return true; |
| 454 | |
| 455 | tearDown(); |
| 456 | |
| 457 | if (establish() && handShake() && negotiateCodec()) { |
| 458 | logger_->log_debug("Site to Site ready for data transaction"); |
| 459 | return true; |
| 460 | } else { |
| 461 | peer_->yield(); |
| 462 | tearDown(); |
| 463 | return false; |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | std::shared_ptr<Transaction> RawSiteToSiteClient::createTransaction(TransferDirection direction) { |
| 468 | int ret; |
no test coverage detected