std::string list_service_name = ondemand_parcel.ReadString();
_D("Ondemand Service_name : %s", list_service_name.c_str());
if (list_header == std::string("OndemandList")) {
- raw = GetOndemandList(list_service_name).GetRaw();
+ raw = GetOndemandList(list_service_name).ToRaw();
if (raw.size() == 0)
return;
}
std::shared_ptr<CionPeerInfo> pi =
std::make_shared<CionPeerInfo>(std::string(service_name),
- parcel.GetRaw().data(), parcel.GetRaw().size());
+ parcel.GetData(), parcel.GetDataSize());
ondemand_peer_list_.emplace_back(pi);
free(uuid);
parcel.WriteString(display_name);
std::shared_ptr<CionPeerInfo> pi =
- std::make_shared<CionPeerInfo>(service_name, parcel.GetRaw().data(),
- parcel.GetRaw().size());
+ std::make_shared<CionPeerInfo>(service_name, parcel.GetData(),
+ parcel.GetDataSize());
ondemand_peer_list_.emplace_back(pi);
free(uuid);
parcel.WriteBool(false);
return parcel;
-}
\ No newline at end of file
+}