-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.hpp
65 lines (62 loc) · 932 Bytes
/
client.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef __CLIENT__H__
#define __CLIENT__H__
#include <string.h>
#include <cstring>
#include <unistd.h>
#include <stdio.h>
#include <signal.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <strings.h>
#include <stdlib.h>
#include <string>
#include <time.h>
#include <sys/time.h>
#include <pthread.h>
#define BUFFSIZE 1024
using namespace std;
char wirter[BUFFSIZE];
char reader[BUFFSIZE];
int sockFd;
int mc;
int stop;
/**
* @brief
*
* @return none.
*/
void blue();
/**
* @brief
*
* @return none.
*/
void red();
/**
* @brief
*
* @return none.
*/
void yellow();
/**
* @brief
*
* @return none.
*/
void reset();
/**
* @brief
*
* @param signum : number's signal
* @return non.
*/
void sig_handler(int);
int client(int argc, char *argv[]);
void welcom();
#endif //!__CLIENT__H__