SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from Other c-ares-1.3.0-4.sl5.x86_64.rpm

ARES_EXPAND_NAME

Section: C Library Functions (3)
Updated: 23 July 1998
Index 

NAME

ares_expand_string - Expand a length encoded string 

SYNOPSIS

#include <ares.h>int ares_expand_string(const unsigned char *encoded,const unsigned char *abuf, int alen, unsigned char **s,int *enclen)
 

DESCRIPTION

Theares_expand_stringfunction converts a length encoded string to a NULL terminated Cstring. The argumentencodedgives the beginning of the encoded string, and the argumentsabufandalengive the containing message buffer (necessary for the processing ofindirection pointers within the encoded domain name). The result isplaced in a NUL-terminated allocated buffer, a pointer to which isstored in the variable pointed to bys.The length of the encoded string is stored in the variable pointed to byenclenso that the caller can advance past the encoded string to readfurther data in the message. 

RETURN VALUES

ares_expand_stringcan return any of the following values:
ARES_SUCCESS
Expansion of the encoded string succeeded.
ARES_EBADSTR
The encoded string was malformed and could not be expanded.
ARES_ENOMEM
Memory was exhausted.
 

SEE ALSO

ares_free_string(3) 

AUTHOR

Dominick Meglio


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
SEE ALSO
AUTHOR

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector