Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
send_thread Struct Reference

List of all members.

Public Member Functions

void collect_stats (ectools::ecstats &stats)
void lock_thread ()
void print (std::ostream &os)
void run ()
 send_thread (unsigned packet_size, struct netif *ni)
void start () throw (std::exception)
void unlock_thread ()
 ~send_thread ()

Static Public Member Functions

static void lock_global ()
static void * run (void *arg)
static void unlock_global ()

Public Attributes

APRD_Telegram aprd_telegram
unsigned char buffer [2000]
unsigned buffer_index
unsigned char buffer_value
uint64_t dropped
EC_Ethernet_Frame frame
uint64_t good
uint64_t interval_dropped
uint64_t interval_good
int interval_min_device_count
uint64_t interval_sent
struct timespec start_time interval_time
uint64_t interval_unsent
int max_device_count
std::string name
struct netif * ni
unsigned packet_size
bool running
uint64_t sent
pthread_t thread
pthread_mutex_t thread_lock
unsigned thread_num
uint64_t unsent

Static Public Attributes

static pthread_mutex_t global_lock = PTHREAD_MUTEX_INITIALIZER
static bool quit = false
static unsigned thread_count = 0
static unsigned verbose = 0

Detailed Description

Definition at line 129 of file ecstats.cpp.


Constructor & Destructor Documentation

send_thread::send_thread ( unsigned  packet_size,
struct netif *  ni 
) [inline]

Definition at line 176 of file ecstats.cpp.

Definition at line 213 of file ecstats.cpp.


Member Function Documentation

void send_thread::collect_stats ( ectools::ecstats stats) [inline]

Definition at line 346 of file ecstats.cpp.

static void send_thread::lock_global ( ) [inline, static]

Definition at line 159 of file ecstats.cpp.

void send_thread::lock_thread ( ) [inline]

Definition at line 167 of file ecstats.cpp.

void send_thread::print ( std::ostream &  os) [inline]

Definition at line 399 of file ecstats.cpp.

static void* send_thread::run ( void *  arg) [inline, static]

Definition at line 235 of file ecstats.cpp.

void send_thread::run ( void  ) [inline]

Definition at line 253 of file ecstats.cpp.

void send_thread::start ( ) throw (std::exception) [inline]

Definition at line 225 of file ecstats.cpp.

static void send_thread::unlock_global ( ) [inline, static]

Definition at line 163 of file ecstats.cpp.

void send_thread::unlock_thread ( ) [inline]

Definition at line 171 of file ecstats.cpp.


Member Data Documentation

Definition at line 150 of file ecstats.cpp.

unsigned char send_thread::buffer[2000]

Definition at line 145 of file ecstats.cpp.

Definition at line 146 of file ecstats.cpp.

Definition at line 147 of file ecstats.cpp.

Definition at line 138 of file ecstats.cpp.

EC_Ethernet_Frame send_thread::frame

Definition at line 151 of file ecstats.cpp.

pthread_mutex_t send_thread::global_lock = PTHREAD_MUTEX_INITIALIZER [static]

Definition at line 155 of file ecstats.cpp.

Definition at line 139 of file ecstats.cpp.

Definition at line 138 of file ecstats.cpp.

Definition at line 139 of file ecstats.cpp.

Definition at line 140 of file ecstats.cpp.

Definition at line 136 of file ecstats.cpp.

Definition at line 142 of file ecstats.cpp.

Definition at line 137 of file ecstats.cpp.

Definition at line 141 of file ecstats.cpp.

std::string send_thread::name

Definition at line 131 of file ecstats.cpp.

struct netif* send_thread::ni

Definition at line 149 of file ecstats.cpp.

Definition at line 144 of file ecstats.cpp.

bool send_thread::quit = false [static]

Definition at line 153 of file ecstats.cpp.

Definition at line 134 of file ecstats.cpp.

Definition at line 136 of file ecstats.cpp.

Definition at line 130 of file ecstats.cpp.

unsigned send_thread::thread_count = 0 [static]

Definition at line 156 of file ecstats.cpp.

pthread_mutex_t send_thread::thread_lock

Definition at line 133 of file ecstats.cpp.

Definition at line 132 of file ecstats.cpp.

Definition at line 137 of file ecstats.cpp.

unsigned send_thread::verbose = 0 [static]

Definition at line 154 of file ecstats.cpp.


The documentation for this struct was generated from the following file:


ectools
Author(s): Derek King
autogenerated on Sat Dec 28 2013 17:52:56