'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Function parse_srv_record

odtone::dns::parse_srv_record

Synopsis

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


srv_record parse_srv_record(const unsigned char * p, int pos, int len);

Description

Parse a SRV Resource Record. In the end the position is pointing to the next byte after the SRV Resource Record end.

Parameters:

len

Length of the SRV Resource Record.

p

Byte array containing the information.

pos

Position in the byte array where to start parsing.

Returns:

The SRV Resource Record value.


PrevUpHomeNext