Skip to content

onezibo/-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

计网大作业

进度
  • 处理 GET/POST 请求
  • 上传和下载文件
  • 持久连接,分块传输
  • 管道
  • 使用 openssl,支持 https
  • libevent
编译方法

gcc config.c httpd.c utils.c -levent -lssl -lcrypto -levent_openssl -o httpd

运行方法

在 httpd 可运行文件所在的目录下新建文件夹 files,随便放一些目录文件 然后./httpd

证书生成

openssl genrsa -out server-private-key.pem 2048

openssl req -new -x509 -key server-private-key.pem -out server-certificate-chain.pem -days 1095

https://blog.csdn.net/weixin_30531261/article/details/80891360

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages