Classes | Functions | Variables
Board.cpp File Reference
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <boost/thread.hpp>
Include dependency graph for Board.cpp:

Go to the source code of this file.

Classes

struct  board

Functions

void BoradcastWithFrq (int connected)
bool check_Command (unsigned char *buf)
int main ()
void send_Ack ()
void set_channels (void)
void switch_OnOffChannel (char channel, char status)
void take_boardMeasurments ()
void take_boardSpecifications ()
void thread_for_client (int connected)

Variables

struct board board_info
int broadcastFrq
int BUFF_SIZE
int bytes_recieved
int channels
struct sockaddr_in server_addr client_addr
int connected
int MAX_channels = 8
unsigned char nbuffer [255]
unsigned char * p
char recv_data [255]
char send_data [255]
int sin_size
int sock
int True = 1

Function Documentation

void BoradcastWithFrq ( int  connected)

Definition at line 208 of file Board.cpp.

bool check_Command ( unsigned char *  buf)

Definition at line 165 of file Board.cpp.

int main ( )

Definition at line 263 of file Board.cpp.

void send_Ack ( )

Definition at line 169 of file Board.cpp.

void set_channels ( void  )

Definition at line 53 of file Board.cpp.

void switch_OnOffChannel ( char  channel,
char  status 
)

Definition at line 194 of file Board.cpp.

Definition at line 118 of file Board.cpp.

Definition at line 77 of file Board.cpp.

void thread_for_client ( int  connected)

Definition at line 222 of file Board.cpp.


Variable Documentation

struct board board_info

Definition at line 49 of file Board.cpp.

Definition at line 35 of file Board.cpp.

int BUFF_SIZE

Definition at line 34 of file Board.cpp.

Definition at line 35 of file Board.cpp.

int channels

Definition at line 39 of file Board.cpp.

struct sockaddr_in server_addr client_addr

Definition at line 50 of file Board.cpp.

int connected

Definition at line 35 of file Board.cpp.

int MAX_channels = 8

Definition at line 40 of file Board.cpp.

unsigned char nbuffer[255]

Definition at line 37 of file Board.cpp.

unsigned char* p

Definition at line 38 of file Board.cpp.

char recv_data[255]

Definition at line 36 of file Board.cpp.

char send_data[255]

Definition at line 36 of file Board.cpp.

int sin_size

Definition at line 51 of file Board.cpp.

int sock

Definition at line 35 of file Board.cpp.

int True = 1

Definition at line 35 of file Board.cpp.



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