Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
Public Types | Public Member Functions | Friends | List of all members
transport::core::Name Class Reference

Public Types

using NameStruct = hicn_name_t
 
using Type = hicn_name_type_t
 

Public Member Functions

 Name (const char *name, uint32_t segment)
 Create name. More...
 
 Name (int family, const uint8_t *ip_address, std::uint32_t suffix=0)
 
 Name (const std::string &uri, uint32_t segment)
 
 Name (const std::string &uri)
 
 Name (const Name &name)
 
Nameoperator= (const Name &name)
 
bool operator== (const Name &name) const
 
bool operator!= (const Name &name) const
 
 operator bool () const
 
bool isValid () const
 
std::string toString () const
 
bool equals (const Name &name, bool consider_segment=true) const
 
uint32_t getHash32 (bool consider_suffix=true) const
 
void clear ()
 
Type getType () const
 
uint32_t getSuffix () const
 
std::shared_ptr< Sockaddr > getAddress () const
 
NamesetSuffix (uint32_t seq_number)
 
ip_prefix_t toIpAddress () const
 
void copyToDestination (uint8_t *destination, bool include_suffix=false) const
 
int getAddressFamily () const
 

Friends

class Packet
 
class ContentObject
 
class Interest
 

Constructor & Destructor Documentation

◆ Name()

transport::core::Name::Name ( const char *  name,
uint32_t  segment 
)

Create name.

Parameters
nameThe null-terminated URI string

The documentation for this class was generated from the following file: