represents the underlying protocol and address used by a Face
More...
#include <ndn-cxx/net/face-uri.hpp>
represents the underlying protocol and address used by a Face
- See also
- https://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#FaceUri
Definition at line 44 of file face-uri.hpp.
◆ CanonizeFailureCallback
◆ CanonizeSuccessCallback
◆ FaceUri() [1/7]
ndn::FaceUri::FaceUri |
( |
| ) |
|
◆ FaceUri() [2/7]
ndn::FaceUri::FaceUri |
( |
const std::string & |
uri | ) |
|
|
explicit |
construct by parsing
- Parameters
-
uri | scheme://host[:port]/path |
- Exceptions
-
Definition at line 51 of file face-uri.cpp.
◆ FaceUri() [3/7]
ndn::FaceUri::FaceUri |
( |
const char * |
uri | ) |
|
|
explicit |
◆ FaceUri() [4/7]
ndn::FaceUri::FaceUri |
( |
const boost::asio::ip::udp::endpoint & |
endpoint | ) |
|
|
explicit |
◆ FaceUri() [5/7]
ndn::FaceUri::FaceUri |
( |
const boost::asio::ip::tcp::endpoint & |
endpoint | ) |
|
|
explicit |
◆ FaceUri() [6/7]
ndn::FaceUri::FaceUri |
( |
const boost::asio::ip::tcp::endpoint & |
endpoint, |
|
|
const std::string & |
scheme |
|
) |
| |
◆ FaceUri() [7/7]
◆ canCanonize()
bool ndn::FaceUri::canCanonize |
( |
const std::string & |
scheme | ) |
|
|
static |
◆ canonize()
asynchronously convert this FaceUri to canonical form
- Parameters
-
onSuccess | function to call after this FaceUri is converted to canonical form |
- Note
- A new FaceUri in canonical form will be created; this FaceUri is unchanged.
- Parameters
-
onFailure | function to call if this FaceUri cannot be converted to canonical form |
io | reference to boost::asio::io_service instance |
timeout | maximum allowable duration of the operations. It's intentional not to provide a default value: the caller should set a reasonable value in balance between network delay and user experience. |
Definition at line 630 of file face-uri.cpp.
◆ fromDev()
FaceUri ndn::FaceUri::fromDev |
( |
const std::string & |
ifname | ) |
|
|
static |
◆ fromFd()
FaceUri ndn::FaceUri::fromFd |
( |
int |
fd | ) |
|
|
static |
◆ fromUdpDev()
FaceUri ndn::FaceUri::fromUdpDev |
( |
const boost::asio::ip::udp::endpoint & |
endpoint, |
|
|
const std::string & |
ifname |
|
) |
| |
|
static |
create udp4 or udp6 NIC-associated FaceUri from endpoint and network device name
Definition at line 179 of file face-uri.cpp.
◆ getHost()
const std::string& ndn::FaceUri::getHost |
( |
| ) |
const |
|
inline |
◆ getPath()
const std::string& ndn::FaceUri::getPath |
( |
| ) |
const |
|
inline |
◆ getPort()
const std::string& ndn::FaceUri::getPort |
( |
| ) |
const |
|
inline |
◆ getScheme()
const std::string& ndn::FaceUri::getScheme |
( |
| ) |
const |
|
inline |
◆ isCanonical()
bool ndn::FaceUri::isCanonical |
( |
| ) |
const |
determine whether this FaceUri is in canonical form
- Returns
- true if this FaceUri is in canonical form, false if this FaceUri is not in canonical form or or it's undetermined whether this FaceUri is in canonical form
Definition at line 619 of file face-uri.cpp.
◆ parse()
bool ndn::FaceUri::parse |
( |
const std::string & |
uri | ) |
|
◆ toString()
std::string ndn::FaceUri::toString |
( |
| ) |
const |
◆ operator!=
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const FaceUri & |
uri |
|
) |
| |
|
friend |
◆ operator==