⚲
Project
General
Profile
Sign in
Register
Home
Projects
Search
:
ndn-cxx
All Projects
NFD
»
ndn-cxx
Overview
Activity
Roadmap
Issues
Wiki
Download (555 Bytes)
Bug #1252
ยป face-copy.cpp
code to reproduce -
Junxiao Shi
, 02/15/2014 01:21 PM
// g++ face-copy.cpp -lndn-cpp-dev -pthread -lboost_system -lboost_filesystem -lcrypto -lcryptopp -lsqlite3
#include
<ndn-cpp-dev/name.hpp>
#include
<ndn-cpp-dev/face.hpp>
void
onInterest
(
const
ndn
::
Name
&
name
,
const
ndn
::
Interest
&
interest
)
{
}
void
onRegisterFailed
(
const
ndn
::
Name
&
prefix
,
const
std
::
string
&
reason
)
{
}
void
makeFace
(
ndn
::
Face
&
face
)
{
face
=
ndn
::
Face
();
}
int
main
()
{
ndn
::
Face
face
;
//face = ndn::Face();
makeFace
(
face
);
face
.
setInterestFilter
(
ndn
::
Name
(
"/x"
),
&
onInterest
,
&
onRegisterFailed
);
return
0
;
}
(1-1/1)
Loading...