/*===============================================================
* Copyright (C) 2019 All rights reserved.
*
* 文件名称:cli.c
* 创 建 者:liujing
* 创建日期:2019年01月13日
* 描 述:
*
* 更新日志:
*
================================================================*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <strings.h>
#include <sys/types.h> /* See NOTES */
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
typedef struct client{
int type;
char name[20];
char passwd[20];
char data[64];