X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffreenet%2Fboardlistinserter.cpp;fp=src%2Ffreenet%2Fboardlistinserter.cpp;h=a3b9b22c986e703620fc0d14f6e927105036ae25;hb=4e96d123460d6363cf7274e36bd9357768eb86ad;hp=69ca3622234870feaa5007ab4713a20f2120b3ec;hpb=e662ea47fba8715474851ceebacba400984ee433;p=fms.git diff --git a/src/freenet/boardlistinserter.cpp b/src/freenet/boardlistinserter.cpp index 69ca362..a3b9b22 100644 --- a/src/freenet/boardlistinserter.cpp +++ b/src/freenet/boardlistinserter.cpp @@ -14,7 +14,7 @@ BoardListInserter::BoardListInserter() Initialize(); } -BoardListInserter::BoardListInserter(FCPv2 *fcp):IIndexInserter(fcp) +BoardListInserter::BoardListInserter(FCPv2::Connection *fcp):IIndexInserter(fcp) { Initialize(); } @@ -45,7 +45,7 @@ void BoardListInserter::CheckForNeededInsert() } } -const bool BoardListInserter::HandlePutFailed(FCPMessage &message) +const bool BoardListInserter::HandlePutFailed(FCPv2::Message &message) { std::vector idparts; long localidentityid; @@ -69,7 +69,7 @@ const bool BoardListInserter::HandlePutFailed(FCPMessage &message) return true; } -const bool BoardListInserter::HandlePutSuccessful(FCPMessage &message) +const bool BoardListInserter::HandlePutSuccessful(FCPv2::Message &message) { Poco::DateTime now; std::vector idparts; @@ -108,7 +108,7 @@ const bool BoardListInserter::StartInsert(const long &localidentityid) Poco::DateTime daysback; Poco::DateTime now; BoardListXML xml; - FCPMessage message; + FCPv2::Message message; std::string data; std::string datasizestr; std::string privatekey=""; @@ -172,8 +172,8 @@ const bool BoardListInserter::StartInsert(const long &localidentityid) message["Identifier"]=m_fcpuniquename+"|"+localidentityidstr+"|"+indexstr+"|"+message["URI"]; message["UploadFrom"]="direct"; message["DataLength"]=datasizestr; - m_fcp->SendMessage(message); - m_fcp->SendRaw(data.c_str(),data.size()); + m_fcp->Send(message); + m_fcp->Send(std::vector(data.begin(),data.end())); m_inserting.push_back(localidentityid);