option.h File Reference

#include "ntar.h"

Go to the source code of this file.

Functions

int write_option_string (ntar_option *option, void *buffer, size_t *buffer_size)
 This fcn writes a string option in a caller provided buffer.
int write_option_raw (ntar_option *option, void *buffer, size_t *buffer_size, void *raw_data, u_int16 raw_data_size)
 This fcn writes a raw buffer option in a caller provided buffer.
int write_option_uint64 (ntar_option *option, void *buffer, size_t *buffer_size)
 This fcn writes a 64-bit integer option in a caller provided buffer.
int write_option_uint32 (ntar_option *option, void *buffer, size_t *buffer_size)
 This fcn writes a 32-bit integer option in a caller provided buffer.
int write_null_option (void *buffer, size_t *buffer_size)
 This fcn writes the NULL (aka END OPTION) in a buffer.
int read_option_string (option_header *oh, int byte_order, void *buffer, size_t *buffer_length)
 This function reads a string out of an option and copies it to a caller provided buffer.
int read_option_uint64 (option_header *oh, int byte_order, void *buffer, size_t *buffer_length)
 This function reads a 64-bit integer out of an option and copies it to a caller provided buffer in host byte order.
int read_option_uint32 (option_header *oh, int byte_order, void *buffer, size_t *buffer_length)
 This function reads a 32-bit integer out of an option and copies it to a caller provided buffer in host byte order.
int read_option_raw (option_header *oh, int byte_order, void *buffer, size_t *buffer_length)
 This function reads the data of an option as a raw buffer, and copies it to a caller provided buffer without applying any byte order fixup.


NTAR documentation. Copyright (c) 2004 - 2005 Condor Engineering, Inc. All rights reserved.