代码拉取完成,页面将自动刷新
#pragma once
#include<stdio.h>
#include<arpa/inet.h>
#include<string.h>
#include<unistd.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<sys/epoll.h>
#include<sys/stat.h>
#include<errno.h>
#include<time.h>
#include<fcntl.h>
#include"fileType.h"
#include"setAddr.h"
#include"hashAddr.h"
#define EPOLLSIZE 1024
//服务器主要流程
void webServer(mAddrs *addr);
//读取客户端请求
void readClientRequset(struct epoll_event *ev,int epfd);
//发送头
void sendHand(int fd,int code,char *info,char *fileType,int length);
//发送文件
void sendFile(int cfd,char *path);
//读取一行
ssize_t readLine(int fd,void *vptr,ssize_t maxlen);
int setNoBlock(int fd);
void printNowTime(const char *str);
//关闭链接并下树
void closeConn(int epfd,struct epoll_event *ev);
void printInfo(hashAddr *hash,int fd);
//
void dameonPid(void);
int cutStdout(void);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。