Version 6.3
Copyright © 2005 - 2012 Lowell D. Thomas
APG
  … ABNF Parser Generator
All Data Structures Files Functions Variables Typedefs Macros Pages
Functions
TortureTestTranslator.c File Reference

Translates the text version of the torture test SIP messages into their binary format. More...

#include "main.h"

Go to the source code of this file.

Functions

apg_uint uiTortureTestTranslator (void *vpMemCtx, const char *cpInput, void *vpVecMsgsBinary)
 

Detailed Description

Translates the text version of the torture test SIP messages into their binary format.

Definition in file TortureTestTranslator.c.

Function Documentation

◆ uiTortureTestTranslator()

apg_uint uiTortureTestTranslator ( void *  vpMemCtx,
const char *  cpInput,
void *  vpVecMsgsBinary 
)

Translates the text versions of the torture test messages to parsable binary format

Translates the "long lines", "non-printable characters" and "long repeating strings" from the torture test SIP messages given in RFC 4475.

Input file is printable ASCII characters only. Output is a binary file containing non-printable characters, very long lines, and lines containing very long strings of repeating characters. Both input and output files contain multiple SIP messages, separated by one or more lines beginning with a semicolon - that is a "CRLF;" character sequence. Note that no valid SIP message line begins with "CRLF;"

Parameters
vpMemCtxmemory component context handle previously returned from vpMemCtor()
cpInputpointer to the ASCII text version of the messages
vpVecMsgsBinaryvector component context handle previously returned from vpVecCtor()
See also
vpMemCtor()
vpVecCtor()
Returns
true on success, false otherwise

Definition at line 90 of file TortureTestTranslator.c.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/licenses.html or write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.