linux下C++ socket网络编程(30)

int pipe_fd[2
;

// 表示客户端是否正常工作

bool isClientwork;

// 聊天信息

Msg msg;

//结构体要转换为字符串

char send_buf[BUF_SIZE
;

char recv_buf[BUF_SIZE
;

//用户连接的服务器 IP + port

struct sockaddr_in serverAddr;

;

Client.cpp

#include <iostream>

#include \"Client.h\"

using namespace std;

// 客户端类成员函数

推荐阅读