MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / bootstrap

Method bootstrap

libminifi/src/sitetosite/RawSocketProtocol.cpp:451–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

449}
450
451bool 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
467std::shared_ptr<Transaction> RawSiteToSiteClient::createTransaction(TransferDirection direction) {
468 int ret;

Callers 1

Site2SiteTests.cppFile · 0.45

Calls 6

tearDownFunction · 0.85
establishFunction · 0.85
handShakeFunction · 0.85
negotiateCodecFunction · 0.85
log_debugMethod · 0.80
yieldMethod · 0.45

Tested by

no test coverage detected