scc.h
来自「在RedHad9 下实现文字界面的聊天程序。此源码示范了C语言的socket通信」· C头文件 代码 · 共 46 行
H
46 行
#include<stdio.h>
#include<unistd.h>
#include<strings.h>
#include<sys/types.h>
#include<sys/socket.h>
#include<netinet/in.h>
#include<netdb.h>
#include<stdlib.h>
#include<pthread.h>
#include<arpa/inet.h>
#include<fcntl.h>
//#include "conio.h"
#define extent 53
#define cr 0x0d
#define lf 0x0a
#define rubout 0x08
#define PORT 7053
#define HOSTSIZE 30
#define PASSWD 128
#define NAMESIZE 50
#define MAXDATASIZE 100
#define COMMANDSIZE 100
#define extent 53
#define cr 0x0d
#define lf 0x0a
#define rubout 0x08
static FILE * fp;
static int sockfd;
static char strLogFile[COMMANDSIZE];
static char passwd[PASSWD];
static int isLog;
static int isPasswd;
static char STRPWD[]="lijun";
//int IsCommand(char sendline[]);
void LogFile(char logline[],char strLogFile[]);
int checkParam(int argc,char* argv[],char hostname[],int* isSecure,int* port,char nickname[]);
//int sendMsg(int sockfd, char sendline[], char passwd[]);
void GetPasswd(char passwd[],char sendline[]);
//void myencrypt(char sendbuf[], char passwd[]);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?