utility.cpp File Reference

#include "earth_time.h"
#include "istring.h"
#include "utility.h"
#include <stdlib.h>

Include dependency graph for utility.cpp:

Go to the source code of this file.

Functions

unsigned int utility::bizarre_checksum (const byte *data, int length)
 A different type of checksum with somewhat unknown properties.
uint16 utility::fletcher_checksum (const byte *data, int length)
 A positionally computed error detection value.
uint16 utility::rolling_fletcher_checksum (uint16 previous, const byte *data, int len)
 Fletcher checksums applied to streaming data.
byte utility::byte_checksum (const byte *data, int length)
 simple byte-sized checksum based on additive roll-over.
u_int utility::short_checksum (const byte *data, int length)
 simple shorty checksum based on additive roll-over.
istring timestamp (bool add_space, bool add_date)
 somewhat widely used synonym for timestamp.
u_int utility::hash_bytes (const void *key_data, int key_length)
 returns a value that can be used for indexing into a hash table.

Variables

const int HIGHEST_MOD_VALUE = 32014


Function Documentation

istring timestamp ( bool  add_space = false,
bool  add_date = false 
)

somewhat widely used synonym for timestamp.

"add_space" causes the stamp to have a space character after the outer bracket. "add_date" causes the stamp to include the current date as part of the stamp.

Definition at line 78 of file utility.cpp.

References utility::timestamp().

Referenced by connection_table::complain_missing_connection(), debugger::create_debug_message(), header_string(), main(), run_test_26(), sockets_complain_dead(), sockets_complain_garbage(), and sockets_complain_reject().


Variable Documentation

const int HIGHEST_MOD_VALUE = 32014

Definition at line 27 of file utility.cpp.

Referenced by utility::bizarre_checksum().


Generated on Fri Aug 29 04:29:39 2008 for HOOPLE Libraries by  doxygen 1.5.1