xdas_buf.c File Reference

OpenXDAS network buffer management. More...

#include "xdas_buf.h"
#include "xdas_debug.h"
#include <malloc.h>
#include <string.h>

Go to the source code of this file.

Defines

#define MAX_BUFFER_SIZE   (8 * 64 * 1024)

Functions

xdas_buffer xdas_buffer_alloc (size_t size)
 Allocates a message buffer.
xdas_buffer xdas_buffer_realloc (xdas_buffer buf, size_t size)
 Resizes a message buffer.
xdas_buffer xdas_buffer_dup (xdas_buffer buf)
 Returns a duplicate buffer.
void xdas_buffer_free (xdas_buffer buf)
 Free a message buffer.


Detailed Description

OpenXDAS network buffer management.

This file provides a higher level abstraction over malloc and free that deals specifically with xdas network message buffer management, plus some macros that pass xdas_buffers through to the wire buffer insertion and extraction routines.

Author:
John Calcote (jcalcote@novell.com)
Attention:
Please submit patches to http://openxdas.sourceforge.net

Definition in file xdas_buf.c.


Define Documentation

#define MAX_BUFFER_SIZE   (8 * 64 * 1024)

Definition at line 51 of file xdas_buf.c.

Referenced by xdas_buffer_alloc(), and xdas_buffer_realloc().


Generated on Thu Aug 20 22:33:06 2009 for OpenXDAS by  doxygen 1.5.6