tlds
Transactional Operations for Linked Data Structures
|
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "detector.h"
#include "dictionary.h"
#include "map.h"
#include "packet.h"
#include "queue.h"
#include "random.h"
#include "stream.h"
#include "tm.h"
#include "vector.h"
Classes | |
struct | stream |
Functions | |
stream_t * | stream_alloc (long percentAttack) |
void | stream_free (stream_t *streamPtr) |
static void | splitIntoPackets (char *str, long flowId, random_t *randomPtr, vector_t *allocVectorPtr, queue_t *packetQueuePtr) |
long | stream_generate (stream_t *streamPtr, dictionary_t *dictionaryPtr, long numFlow, long seed, long maxLength) |
char * | stream_getPacket (stream_t *streamPtr) |
char * | TMstream_getPacket (TM_ARGDECL stream_t *streamPtr) |
bool_t | stream_isAttack (stream_t *streamPtr, long flowId) |
|
static |
stream_t* stream_alloc | ( | long | percentAttack | ) |
void stream_free | ( | stream_t * | streamPtr | ) |
long stream_generate | ( | stream_t * | streamPtr, |
dictionary_t * | dictionaryPtr, | ||
long | numFlow, | ||
long | seed, | ||
long | maxLength | ||
) |
char* stream_getPacket | ( | stream_t * | streamPtr | ) |
char* TMstream_getPacket | ( | TM_ARGDECL stream_t * | streamPtr | ) |