build: Fix compilation errors and deprecation warnings
Change-Id: Ibbe2d30ced038f0c46a8669b5957b68c4f265350
diff --git a/src/sync-socket.cc b/src/sync-socket.cc
index b18f64c..adecec3 100644
--- a/src/sync-socket.cc
+++ b/src/sync-socket.cc
@@ -49,7 +49,7 @@
, m_newDataCallback(dataCallback)
, m_myCertificate(myCertificate)
, m_face(face)
- , m_ioService(face->ioService())
+ , m_ioService(face->getIoService())
{
if(withRoutingPrefix && !routingPrefix.isPrefixOf(m_dataPrefix))
{
@@ -93,8 +93,8 @@
data->setContent(reinterpret_cast<const uint8_t*>(buf), len);
data->setFreshnessPeriod(time::milliseconds(1000*freshness));
- m_ioService->post(bind(&SyncSocket::publishDataInternal, this,
- data, isCert));
+ m_ioService.post(bind(&SyncSocket::publishDataInternal, this,
+ data, isCert));
}
void
@@ -164,7 +164,7 @@
for(; it != end; it++)
{
offset--;
- if(it->toEscapedString() == "%F0.")
+ if(it->toUri() == "%F0.")
{
encaped = true;
break;
@@ -215,7 +215,7 @@
const OnDataValidated& onValidated)
{
if(data->getName().size() > interestNameSize
- && data->getName().get(interestNameSize).toEscapedString() == "INTRO-CERT")
+ && data->getName().get(interestNameSize).toUri() == "INTRO-CERT")
{
if(!m_withSecurity)
return;