Public Member Functions | Private Member Functions | Private Attributes | Friends
Client Class Reference

#include <Client.h>

List of all members.

Public Member Functions

 Client ()
void explore ()
void initClient ()
void on_offChannel (char, char)
void * print_message_function (void *ptr)
void re_initClient ()
void receiveFromServer ()
void requestMeasurments ()
void start_stopBroadcasting (int frq)
void thread_function ()
 ~Client ()

Private Member Functions

void create_thread ()

Private Attributes

int bytes_recieved
char command
char delim
struct hostent * host
bool initiate
ushort length
int max_curr
int max_vol
char n
unsigned char nbuffer [255]
unsigned char * p
unsigned char recv_data [255]
unsigned char send_data [255]
struct sockaddr_in server_addr
int sock
pthread_t thread1
pthread_t thread2

Friends

void * proxy_function (void *)

Detailed Description

Definition at line 14 of file Client.h.


Constructor & Destructor Documentation

Definition at line 2 of file Client.cpp.

Definition at line 18 of file Client.cpp.


Member Function Documentation

void Client::create_thread ( ) [private]

Definition at line 27 of file Client.cpp.

void Client::explore ( )

Definition at line 42 of file Client.cpp.

Definition at line 90 of file Client.cpp.

void Client::on_offChannel ( char  channel,
char  status 
)

Definition at line 68 of file Client.cpp.

void * Client::print_message_function ( void *  ptr)

Definition at line 46 of file Client.cpp.

Definition at line 83 of file Client.cpp.

Definition at line 103 of file Client.cpp.

Definition at line 136 of file Client.cpp.

void Client::start_stopBroadcasting ( int  frq)

Definition at line 53 of file Client.cpp.

Definition at line 32 of file Client.cpp.


Friends And Related Function Documentation

void* proxy_function ( void *  foo_ptr) [friend]

Definition at line 23 of file Client.cpp.


Member Data Documentation

int Client::bytes_recieved [private]

Definition at line 44 of file Client.h.

char Client::command [private]

Definition at line 37 of file Client.h.

char Client::delim [private]

Definition at line 36 of file Client.h.

struct hostent* Client::host [private]

Definition at line 47 of file Client.h.

bool Client::initiate [private]

Definition at line 46 of file Client.h.

ushort Client::length [private]

Definition at line 38 of file Client.h.

int Client::max_curr [private]

Definition at line 40 of file Client.h.

int Client::max_vol [private]

Definition at line 41 of file Client.h.

char Client::n [private]

Definition at line 39 of file Client.h.

unsigned char Client::nbuffer[255] [private]

Definition at line 42 of file Client.h.

unsigned char* Client::p [private]

Definition at line 43 of file Client.h.

unsigned char Client::recv_data[255] [private]

Definition at line 45 of file Client.h.

unsigned char Client::send_data[255] [private]

Definition at line 45 of file Client.h.

struct sockaddr_in Client::server_addr [private]

Definition at line 48 of file Client.h.

int Client::sock [private]

Definition at line 44 of file Client.h.

pthread_t Client::thread1 [private]

Definition at line 49 of file Client.h.

pthread_t Client::thread2 [private]

Definition at line 49 of file Client.h.


The documentation for this class was generated from the following files:


tug_ist_diagnosis_board
Author(s): Safdar Zaman, Gerald Steinbauer
autogenerated on Mon Jan 6 2014 11:51:23