version 0.3.28
[fms.git] / src / freenet / identityinserter.cpp
index f28a738..15e52aa 100644 (file)
@@ -15,7 +15,7 @@ IdentityInserter::IdentityInserter()
        Initialize();\r
 }\r
 \r
-IdentityInserter::IdentityInserter(FCPv2 *fcp):IFCPConnected(fcp)\r
+IdentityInserter::IdentityInserter(FCPv2::Connection *fcp):IFCPConnected(fcp)\r
 {\r
        Initialize();\r
 }\r
@@ -55,7 +55,7 @@ void IdentityInserter::FCPDisconnected()
        \r
 }\r
 \r
-const bool IdentityInserter::HandleMessage(FCPMessage &message)\r
+const bool IdentityInserter::HandleMessage(FCPv2::Message &message)\r
 {\r
 \r
        if(message["Identifier"].find("IdentityInserter")==0)\r
@@ -154,7 +154,7 @@ void IdentityInserter::StartInsert(const long localidentityid)
        if(rs.Empty()==false)\r
        {\r
                IdentityXML idxml;\r
-               FCPMessage mess;\r
+               FCPv2::Message mess;\r
                Poco::DateTime now;\r
                std::string messagebase;\r
                std::string data;\r
@@ -232,8 +232,8 @@ void IdentityInserter::StartInsert(const long localidentityid)
                mess["Identifier"]="IdentityInserter|"+idstring+"|"+indexstr+"|"+mess["URI"];\r
                mess["UploadFrom"]="direct";\r
                mess["DataLength"]=datasizestr;\r
-               m_fcp->SendMessage(mess);\r
-               m_fcp->SendRaw(data.c_str(),data.size());\r
+               m_fcp->Send(mess);\r
+               m_fcp->Send(std::vector<char>(data.begin(),data.end()));\r
 \r
                m_db->Execute("UPDATE tblLocalIdentity SET InsertingIdentity='true' WHERE LocalIdentityID="+idstring+";");\r
 \r