mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
393 B
C++
24 lines
393 B
C++
#ifndef LLARP_DNS_STRING_HPP
|
|
#define LLARP_DNS_STRING_HPP
|
|
|
|
#include <string>
|
|
|
|
namespace llarp
|
|
{
|
|
namespace dns
|
|
{
|
|
using name_t = std::string;
|
|
|
|
/// decode name from buffer
|
|
bool
|
|
decode_name(llarp_buffer_t* buf, name_t& name);
|
|
|
|
/// encode name to buffer
|
|
bool
|
|
encode_name(llarp_buffer_t* buf, const name_t& name);
|
|
|
|
} // namespace dns
|
|
} // namespace llarp
|
|
|
|
#endif
|