'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Function parse_domain_name

odtone::dns::parse_domain_name

Synopsis

// In header: </home/carlos/Projectos/odtone/inc/odtone/net/dns/utils.hpp>


std::string parse_domain_name(const unsigned char * p, int & pos);

Description

Parse a domain name. In the end the position is pointing to the next byte after the domain name end.

Parameters:

p

Byte array containing the information.

pos

Position in the byte array where to start parsing.

Returns:

The domain name in the string form.


PrevUpHomeNext