#include <Client.h>
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 *) |
Client::Client | ( | ) |
Definition at line 2 of file Client.cpp.
Client::~Client | ( | ) |
Definition at line 18 of file Client.cpp.
void Client::create_thread | ( | ) | [private] |
Definition at line 27 of file Client.cpp.
void Client::explore | ( | ) |
Definition at line 42 of file Client.cpp.
void Client::initClient | ( | ) |
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.
void Client::re_initClient | ( | ) |
Definition at line 83 of file Client.cpp.
void Client::receiveFromServer | ( | ) |
Definition at line 103 of file Client.cpp.
void Client::requestMeasurments | ( | ) |
Definition at line 136 of file Client.cpp.
void Client::start_stopBroadcasting | ( | int | frq | ) |
Definition at line 53 of file Client.cpp.
void Client::thread_function | ( | ) |
Definition at line 32 of file Client.cpp.
void* proxy_function | ( | void * | foo_ptr | ) | [friend] |
Definition at line 23 of file Client.cpp.
int Client::bytes_recieved [private] |
char Client::command [private] |
char Client::delim [private] |
struct hostent* Client::host [private] |
bool Client::initiate [private] |
ushort Client::length [private] |
int Client::max_curr [private] |
int Client::max_vol [private] |
unsigned char Client::nbuffer[255] [private] |
unsigned char Client::recv_data[255] [private] |
unsigned char Client::send_data[255] [private] |
struct sockaddr_in Client::server_addr [private] |
int Client::sock [private] |
pthread_t Client::thread1 [private] |
pthread_t Client::thread2 [private] |