The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cstringframe.c File Reference

Implements the CstringFrame class class - A Frame for C-style null-terminated strings. More...

#include <string.h>
#include <projectcommon.h>
#include <frameset.h>
#include <cstringframe.h>
#include <frametypes.h>
#include <generic_tlv_min.h>
#include <tlvhelper.h>
Include dependency graph for cstringframe.c:

Go to the source code of this file.

Functions

FSTATIC gboolean _cstringframe_default_isvalid (const Frame *self,gconstpointer tlvptr,gconstpointer pktend)
 CstringFrame class 'isvalid' member function (checks for valid C-style string) More...
 
FSTATIC gchar * _cstringframe_toString (gconstpointer)
 
WINEXPORT CstringFramecstringframe_new (guint16 frame_type, gsize framesize)
 Construct a new CstringFrame - allowing for "derived" frame types... More...
 
WINEXPORT Framecstringframe_tlvconstructor (gconstpointer tlvstart, gconstpointer pktend)
 Given marshalled packet data corresponding to an CstringFrame (C-style string), return the corresponding Frame In other words, un-marshall the data... More...
 

Variables

 DEBUGDECLARATIONS
 

Detailed Description

Implements the CstringFrame class class - A Frame for C-style null-terminated strings.

All we really add above basic Frame objects is validation that they have exactly one zero, and that one at the end - normal 'C' string semantics.

This file is part of the Assimilation Project.

Author
Copyright © 2011, 2012 - Alan Robertson alanr.nosp@m.@uni.nosp@m.x.sh
The Assimilation software 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 3 of the License, or (at your option) any later version.

The Assimilation software 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 the Assimilation Project software. If not, see http://www.gnu.org/licenses/

Definition in file cstringframe.c.

Variable Documentation

DEBUGDECLARATIONS

Definition at line 34 of file cstringframe.c.