tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
stream.c File Reference
#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"
Include dependency graph for stream.c:

Classes

struct  stream
 

Functions

stream_tstream_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)
 

Function Documentation

static void splitIntoPackets ( char *  str,
long  flowId,
random_t randomPtr,
vector_t allocVectorPtr,
queue_t packetQueuePtr 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

stream_t* stream_alloc ( long  percentAttack)

Here is the call graph for this function:

Here is the caller graph for this function:

void stream_free ( stream_t streamPtr)

Here is the call graph for this function:

Here is the caller graph for this function:

long stream_generate ( stream_t streamPtr,
dictionary_t dictionaryPtr,
long  numFlow,
long  seed,
long  maxLength 
)

Here is the call graph for this function:

Here is the caller graph for this function:

char* stream_getPacket ( stream_t streamPtr)

Here is the call graph for this function:

bool_t stream_isAttack ( stream_t streamPtr,
long  flowId 
)

Here is the caller graph for this function:

char* TMstream_getPacket ( TM_ARGDECL stream_t streamPtr)