server 服务器端
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include <pthread.h>
#include <stdio.h>
#include <string.h>
#include <arpa/inet.h>
#define PORT 8848
#define BACKLOG 10
#define MAXDATASIZE 128
#define MAXUSER 9
void fuck_filter(const char* buf);
int select_user(char uname);
void process_cli(int connectfd, struct sockaddr_in client);
void* creat_conn(void* arg);
struct ARG {
int connfd;
struct sockaddr_in client;
};
struct USER {
int connfd;
char name;
}user[MAXUSER+1];
static int u_len = 0;
/////////////////////////////////
int main(void)
{