version 0.3.28
[fms.git] / src / freenet / boardlistinserter.cpp
index 69ca362..a3b9b22 100644 (file)
@@ -14,7 +14,7 @@ BoardListInserter::BoardListInserter()
        Initialize();\r
 }\r
 \r
-BoardListInserter::BoardListInserter(FCPv2 *fcp):IIndexInserter<long>(fcp)\r
+BoardListInserter::BoardListInserter(FCPv2::Connection *fcp):IIndexInserter<long>(fcp)\r
 {\r
        Initialize();\r
 }\r
@@ -45,7 +45,7 @@ void BoardListInserter::CheckForNeededInsert()
        }\r
 }\r
 \r
-const bool BoardListInserter::HandlePutFailed(FCPMessage &message)\r
+const bool BoardListInserter::HandlePutFailed(FCPv2::Message &message)\r
 {\r
        std::vector<std::string> idparts;\r
        long localidentityid;\r
@@ -69,7 +69,7 @@ const bool BoardListInserter::HandlePutFailed(FCPMessage &message)
        return true;\r
 }\r
 \r
-const bool BoardListInserter::HandlePutSuccessful(FCPMessage &message)\r
+const bool BoardListInserter::HandlePutSuccessful(FCPv2::Message &message)\r
 {\r
        Poco::DateTime now;\r
        std::vector<std::string> idparts;\r
@@ -108,7 +108,7 @@ const bool BoardListInserter::StartInsert(const long &localidentityid)
        Poco::DateTime daysback;\r
        Poco::DateTime now;\r
        BoardListXML xml;\r
-       FCPMessage message;\r
+       FCPv2::Message message;\r
        std::string data;\r
        std::string datasizestr;\r
        std::string privatekey="";\r
@@ -172,8 +172,8 @@ const bool BoardListInserter::StartInsert(const long &localidentityid)
        message["Identifier"]=m_fcpuniquename+"|"+localidentityidstr+"|"+indexstr+"|"+message["URI"];\r
        message["UploadFrom"]="direct";\r
        message["DataLength"]=datasizestr;\r
-       m_fcp->SendMessage(message);\r
-       m_fcp->SendRaw(data.c_str(),data.size());\r
+       m_fcp->Send(message);\r
+       m_fcp->Send(std::vector<char>(data.begin(),data.end()));\r
 \r
        m_inserting.push_back(localidentityid);\r
 \r